﻿/* Liquid glass redesign */
:root {
  --bg: #050d1f;
  --bg-alt: rgba(15, 28, 54, 0.65);
  --bg-soft: rgba(24, 41, 74, 0.55);
  --panel: rgba(28, 48, 82, 0.58);
  --panel-strong: rgba(40, 66, 110, 0.68);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-strong: rgba(255, 255, 255, 0.4);
  --text: #f2f6ff;
  --muted: #9fb2d6;
  --primary: #8ec8ff;
  --primary-600: #5fa8ff;
  --accent: #b689ff;
  --highlight: rgba(255, 255, 255, 0.75);
  --shadow-soft: 0 24px 60px rgba(6, 12, 28, 0.45);
  --shadow-lift: 0 18px 48px rgba(6, 12, 28, 0.38);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --blur-lg: 32px;
  --blur-md: 22px;
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --header-h: 72px;
  --skill-grad-start: #1a2748;
  --skill-grad-end: #0c1328;
}

[data-theme="light"] {
  --bg: #e7f0ff;
  --bg-alt: rgba(255, 255, 255, 0.72);
  --bg-soft: rgba(255, 255, 255, 0.62);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(144, 170, 214, 0.35);
  --glass-border-strong: rgba(144, 170, 214, 0.6);
  --text: #13233f;
  --muted: #5e6f93;
  --primary: #3c7bff;
  --primary-600: #275df4;
  --accent: #8567ff;
  --shadow-soft: 0 24px 45px rgba(68, 92, 140, 0.18);
  --shadow-lift: 0 20px 46px rgba(68, 92, 140, 0.22);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  --skill-grad-start: #dce8ff;
  --skill-grad-end: #b9c8ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: #060d1f;
  background-image: radial-gradient(130% 130% at 10% 0%, #102452 0%, rgba(8, 14, 30, 0.92) 45%, rgba(4, 9, 19, 0.92) 100%);
  min-height: 100%;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background: radial-gradient(130% 130% at 0% 0%, #f6f9ff 0%, #d8e5ff 55%, #bfd4ff 100%);
  color: var(--text);
}

.page-e5-intro .hero-cta .btn {
  min-width: 0;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.e5-note .note {
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: rgba(142, 200, 255, 0.08);
  border: 1px solid rgba(142, 200, 255, 0.25);
  max-width: 820px;
}

.stat-card {
  text-align: left;
  gap: 12px;
}

.stat-card-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card-label {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.context-card p {
  margin: 0 0 12px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.mission-card {
  position: relative;
}

.mission-competences {
  display: grid;
  gap: 10px;
}

.mission-competences-title {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mission-highlight {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(142, 200, 255, 0.3);
  background: rgba(142, 200, 255, 0.08);
  font-size: 0.9rem;
}

.mission-highlight span {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.mindmap-figure {
  margin: 0;
}

.mindmap-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.mindmap-figure figcaption {
  margin-top: 12px;
}

.excel-embed {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 0;
}

.excel-embed #excelView {
  overflow: auto;
  min-height: 360px;
  max-height: 78vh;
}

.excel-pdf {
  width: 100%;
  min-height: 720px;
  border: none;
  display: block;
  background: transparent;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  background: #0f1d38;
  color: #e8f1ff;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

.excel-table td,
.excel-table th {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  color: #e8f1ff;
  vertical-align: top;
  line-height: 1.35;
}

.excel-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #f2f6ff;
  text-align: left;
  font-weight: 600;
}

.excel-table tr:first-child th,
.excel-table tr:first-child td {
  font-size: 18px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.excel-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.slide-deck {
  scroll-snap-type: none;
  overflow: visible;
  max-height: none;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slide-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  scroll-snap-align: start;
  position: relative;
  border: 1px solid rgba(142, 200, 255, 0.2);
}

.slide-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-card.is-active {
  border-color: rgba(142, 200, 255, 0.55);
  box-shadow: 0 22px 45px rgba(4, 8, 18, 0.45);
}

.slide-card::before {
  content: attr(data-index);
  position: absolute;
  top: 24px;
  left: -64px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(142, 200, 255, 0.35), rgba(182, 137, 255, 0.35));
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide-card.is-visible::before {
  opacity: 1;
  transform: scale(1);
}

.slide-card::after {
  content: "";
  position: absolute;
  top: 24px;
  left: -2px;
  width: 4px;
  height: calc(100% - 48px);
  background: linear-gradient(180deg, rgba(142, 200, 255, 0.6), rgba(182, 137, 255, 0));
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.slide-card.is-visible::after {
  opacity: 1;
  transform: scaleY(1);
}

.slide-deck .card {
  grid-column: auto;
}

.slide-card h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.slide-card-text {
  display: grid;
  gap: 8px;
}

.slide-card-text p {
  margin: 0;
  line-height: 1.55;
}

.slide-card-images {
  display: grid;
  gap: 16px;
  order: -1;
}

.slide-card-images figure {
  margin: 0;
}

.slide-card-images img {
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  background: rgba(6, 12, 28, 0.6);
}

.slide-card-images figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.slide-card-embed {
  margin-top: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(8, 16, 32, 0.8);
}

.slide-card-embed object,
.slide-card-embed iframe,
.slide-card-embed embed {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.slide-card-embed p {
  margin: 0;
  padding: 12px 14px;
}

.slide-card.is-collapsed {
  cursor: pointer;
}

.slide-card.is-collapsed .slide-card-text,
.slide-card.is-collapsed .slide-card-images {
  display: none;
}

.slide-card:focus,
.slide-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.e5-mindmap .section-header {
  margin-bottom: 40px;
}

.mindmap {
  position: relative;
  padding: 140px 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 40% 30%, rgba(104, 132, 255, 0.12), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(175, 114, 255, 0.12), transparent 60%),
    rgba(3, 6, 18, 0.65);
  border: 1px solid rgba(142, 200, 255, 0.15);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 50px rgba(5, 10, 26, 0.75), 0 40px 80px rgba(2, 6, 20, 0.55);
  --mindmap-offset: 0;
  --mindmap-ring: clamp(260px, 36vw, 360px);
  --mindmap-dot-radius: calc(var(--mindmap-ring) * 0.78);
}

.mindmap::before,
.mindmap::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, rgba(142, 200, 255, 0.08), transparent 35%, rgba(182, 137, 255, 0.08));
  opacity: 0.4;
  animation: orbitGlow 24s linear infinite;
  z-index: 0;
}

.mindmap::after {
  animation-duration: 32s;
  animation-direction: reverse;
  mix-blend-mode: screen;
}


.mindmap-stage {
  position: relative;
  width: min(780px, 94vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(var(--mindmap-offset));
  transition: transform 0.35s ease;
  z-index: 1;
}

.mindmap-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(142, 200, 255, 0.25);
  box-shadow: inset 0 0 60px rgba(5, 10, 26, 0.6);
}

.mindmap-stage::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(182, 137, 255, 0.2);
  opacity: 0.4;
}

.mindmap-group {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(220px, 32vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateX(var(--mindmap-ring)) rotate(calc(-1 * var(--angle, 0deg)));
  transition: transform 0.4s ease;
  will-change: transform;
  pointer-events: auto;
  z-index: 3;
}

.mindmap-group .mindmap-node {
  width: 100%;
  text-align: left;
}

.mindmap-leaves .mindmap-node {
  text-align: inherit;
}

.mindmap-slot-1 {
  --angle: -90deg;
  align-items: center;
}

.mindmap-slot-1 .mindmap-node {
  text-align: center;
}

.mindmap-slot-2 {
  --angle: -18deg;
  align-items: flex-start;
}

.mindmap-slot-3 {
  --angle: 54deg;
  align-items: flex-start;
}

.mindmap-slot-4 {
  --angle: 126deg;
  align-items: flex-end;
}

.mindmap-slot-3 .mindmap-node,
.mindmap-slot-4 .mindmap-node {
  text-align: right;
}

.mindmap-slot-5 {
  --angle: 198deg;
  align-items: flex-end;
}

.mindmap-slot-5 .mindmap-node {
  text-align: right;
}

.mindmap-leaves {
  display: none;
}

.mindmap-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: clamp(320px, 38vw, 440px);
  height: clamp(320px, 38vw, 440px);
  padding: 32px;
  border-radius: 50%;
  border: 1px solid rgba(142, 200, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(156, 204, 255, 0.22), rgba(8, 16, 32, 0.92));
  box-shadow: inset 0 18px 32px rgba(255, 255, 255, 0.12), 0 24px 45px rgba(2, 5, 16, 0.65);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0.25;
  backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 2;
}

.mindmap-display.has-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.mindmap-display.has-content .mindmap-card {
  animation: mindmap-card-pop 0.35s ease;
}

.mindmap-display-placeholder {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  padding: 32px 8px;
}

.mindmap-display-body {
  width: 100%;
}

.mindmap-display-body[hidden] {
  display: none;
}

.mindmap-display::-webkit-scrollbar {
  width: 6px;
}

.mindmap-display::-webkit-scrollbar-thumb {
  background: rgba(142, 200, 255, 0.3);
  border-radius: 999px;
}

.mindmap-display::-webkit-scrollbar-track {
  background: transparent;
}

.mindmap-card {
  display: grid;
  gap: 16px;
}

.mindmap-card::before,
.mindmap-card::after {
  display: none;
}

.mindmap-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mindmap-card .slide-card-text {
  display: grid;
  gap: 8px;
}

.mindmap-card .slide-card-images {
  display: grid;
  gap: 14px;
  order: initial;
}

.mindmap-card .slide-card-images img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lift);
}

@keyframes mindmap-card-pop {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mindmap-node {
  width: auto;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(142, 200, 255, 0.3);
  background: rgba(12, 22, 42, 0.85);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mindmap-node:hover,
.mindmap-node:focus-visible {
  border-color: rgba(142, 200, 255, 0.65);
  background: rgba(18, 30, 54, 0.95);
  box-shadow: 0 16px 32px rgba(6, 12, 28, 0.35);
  outline: none;
  transform: scale(1.02);
}

.e5-mindmap .section-header {
  text-align: center;
}

.mindmap-callout {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.mindmap-node-central {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(142, 200, 255, 0.45);
  background: linear-gradient(135deg, rgba(142, 200, 255, 0.28), rgba(182, 137, 255, 0.28));
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25), 0 18px 40px rgba(4, 9, 22, 0.45);
  text-shadow: 0 1px 3px rgba(4, 8, 18, 0.6);
  border: 0;
  transform: translateX(var(--mindmap-offset));
  transition: transform 0.35s ease;
}

.mindmap-node-central[disabled] {
  cursor: default;
  opacity: 0.9;
}

.mindmap-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.mindmap-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  --distance: var(--mindmap-dot-radius);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(142, 200, 255, 0.35);
  background: rgba(10, 18, 36, 0.92);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 12px 26px rgba(4, 9, 22, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)) rotate(calc(-1 * var(--angle)));
}

.mindmap-dot:hover,
.mindmap-dot:focus-visible {
  border-color: rgba(142, 200, 255, 0.6);
  box-shadow: 0 16px 30px rgba(4, 9, 22, 0.65);
  outline: none;
}

.mindmap-dot.is-active {
  background: linear-gradient(135deg, rgba(142, 200, 255, 0.4), rgba(182, 137, 255, 0.4));
  border-color: rgba(142, 200, 255, 0.9);
  box-shadow: 0 18px 40px rgba(4, 9, 22, 0.75);
}

@media (max-width: 720px) {
  .mindmap-stage {
    width: 100%;
    max-width: 420px;
  }
  .mindmap-display {
    width: min(240px, 70vw);
    height: min(240px, 70vw);
  }
  .mindmap-dot {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
  }
  .mindmap-orbit {
    display: none;
  }
}
body.modal-open {
  overflow: hidden;
}

.slide-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(6, 13, 31, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slide-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.slide-modal-backdrop {
  position: absolute;
  inset: 0;
}

.slide-modal-dialog {
  position: relative;
  width: min(900px, 96vw);
  max-height: 90vh;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(142, 200, 255, 0.35);
  background: rgba(10, 18, 36, 0.96);
  box-shadow: 0 32px 70px rgba(6, 12, 28, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 28px 20px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-modal.is-open .slide-modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.slide-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(142, 200, 255, 0.3);
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-modal-close:hover,
.slide-modal-close:focus-visible {
  background: rgba(142, 200, 255, 0.12);
  transform: scale(1.05);
  outline: none;
}

.slide-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-right: 52px;
}

.slide-modal-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.slide-modal-counter {
  font-size: 0.95rem;
  color: var(--muted);
}

.slide-modal-body {
  margin-top: 18px;
  overflow-y: auto;
  padding-right: 6px;
}

.slide-modal-body::-webkit-scrollbar {
  width: 6px;
}

.slide-modal-body::-webkit-scrollbar-thumb {
  background: rgba(142, 200, 255, 0.3);
  border-radius: 999px;
}

.slide-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.slide-card-modal {
  margin: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 16px;
}

.slide-card-modal::before,
.slide-card-modal::after {
  display: none;
}

.slide-modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.slide-modal-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(142, 200, 255, 0.35);
  background: rgba(12, 22, 42, 0.85);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slide-modal-nav:hover,
.slide-modal-nav:focus-visible {
  transform: scale(1.05);
  background: rgba(20, 32, 58, 0.95);
  outline: none;
}

.slide-card h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.slide-card-text {
  display: grid;
  gap: 8px;
}

.slide-card-text p {
  margin: 0;
  line-height: 1.55;
}

.slide-card-images {
  display: grid;
  gap: 16px;
}

.slide-card-images figure {
  margin: 0;
}

.slide-card-images img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.slide-card-images figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.competence-card h3 {
  margin-bottom: 8px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.next-grid .list {
  gap: 10px;
}

.page-e5 .list-item a {
  color: var(--primary);
  text-decoration: none;
}

.page-e5 .list-item a:hover {
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-card {
  display: grid;
  gap: 16px;
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.gallery-card figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}

.slide-group {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: linear-gradient(140deg, rgba(142, 200, 255, 0.07), rgba(182, 137, 255, 0.05));
  box-shadow: var(--shadow-soft);
}

.slide-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 10%, rgba(142, 200, 255, 0.16), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.slide-group--pro {
  border-color: rgba(0, 211, 100, 0.28);
  background: linear-gradient(145deg, rgba(0, 211, 100, 0.08), rgba(0, 255, 136, 0.04));
}

.slide-group--pro::before {
  background: radial-gradient(circle at 88% 12%, rgba(0, 211, 100, 0.18), transparent 46%);
}

.slide-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  width: max-content;
}

.slide-group--pro .slide-group-title {
  border-color: rgba(0, 211, 100, 0.35);
  color: #b5ffd9;
}

.slide-group-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(142, 200, 255, 0.85), rgba(182, 137, 255, 0.85));
  box-shadow: 0 0 0 6px rgba(142, 200, 255, 0.15);
}

.slide-group--pro .slide-group-dot {
  background: linear-gradient(135deg, rgba(0, 211, 100, 0.9), rgba(0, 255, 136, 0.9));
  box-shadow: 0 0 0 6px rgba(0, 211, 100, 0.18);
}

@media (max-width: 720px) {
  .stats-cards,
  .context-grid,
  .mission-grid,
  .competence-grid,
  .next-grid,
  .gallery-grid,
  .slide-deck {
    grid-template-columns: 1fr;
  }
  .stat-card {
    text-align: left;
  }
}
a {
  color: inherit;
}

a:hover {
  color: var(--primary);
}

main {
  flex: 1 1 auto;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

main > section.section:not(#cybersecurite) .container {
  position: relative;
  z-index: 1;
}

.h5 {
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.contact-header {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 36px;
}

.contact-header .lead {
  margin: 0;
  font-size: 1.18rem;
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.contact-info {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(20, 32, 62, 0.92), rgba(9, 16, 32, 0.9));
  border: 1px solid rgba(142, 200, 255, 0.28);
  box-shadow: 0 26px 46px rgba(5, 12, 32, 0.38);
  display: grid;
  gap: 22px;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  inset: -40% 20% 58% -30%;
  background: radial-gradient(ellipse at top, rgba(142, 200, 255, 0.5), transparent 68%);
  opacity: 0.8;
  pointer-events: none;
}

.contact-info::after {
  content: "";
  position: absolute;
  inset: 55% -20% -35% 35%;
  background: radial-gradient(circle at bottom, rgba(182, 137, 255, 0.35), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.contact-info > * {
  position: relative;
  z-index: 1;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(10, 20, 42, 0.65);
  border: 1px solid rgba(142, 200, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.contact-row:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(12, 26, 52, 0.75);
}

.contact-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(142, 200, 255, 0.88), rgba(182, 137, 255, 0.92));
  color: #061020;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 26px rgba(6, 12, 28, 0.38);
}

.contact-content {
  display: grid;
  gap: 4px;
}

.contact-content .label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 178, 214, 0.85);
}

.contact-content a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-content a:hover {
  color: var(--primary);
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-cta .btn {
  flex: none;
  min-width: 0;
}




.quick-stats li,
.hero-meta,
.tag-list li,
.footer-inner {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

.btn,
.icon-button {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--glass-border-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(142, 200, 255, 0.18));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background 0.24s ease;
  box-shadow: 0 12px 30px rgba(10, 20, 40, 0.25), var(--shadow-inner);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(142, 200, 255, 0.4), rgba(95, 168, 255, 0.55));
  color: #031224;
  box-shadow: 0 18px 34px rgba(95, 168, 255, 0.38);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(142, 200, 255, 0.26));
}

.btn:hover,
.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(8, 18, 40, 0.35);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.icon-button {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #081327;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  height: calc(var(--header-h) - 16px);
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl);
  margin: 0 auto;
  width: min(1180px, calc(100% - 32px));
  padding: 10px 18px;
  border: 1px solid var(--glass-border-strong);
  gap: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
  z-index: 100;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(142, 200, 255, 0.1));
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(calc(var(--blur-md) * 0.6));
  -webkit-backdrop-filter: blur(calc(var(--blur-md) * 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo {
  font-size: 1.4rem;
}

.brand-text {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  padding: 0.45rem 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  border: none;
}

.site-nav ul {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: inherit;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .grid-two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-text,
.hero-card {
  padding: clamp(26px, 4vw, 36px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
}

.hero-text::before,
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(126, 200, 255, 0.12));
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-text > *,
.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 2vw + 2rem, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0 0;
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-meta strong {
  color: var(--highlight);
}

.hero-card {
  display: grid;
  gap: 22px;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quick-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.quick-stats li {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 6px;
  text-align: center;
}

.quick-stats .stat {
  font-size: 1.45rem;
  font-weight: 600;
}

.quick-stats .label {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certifications {
  display: grid;
  gap: 14px;
}

.certifications .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--highlight);
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

#cyberGrid.cards {
  display: block;
  column-count: 3;
  column-gap: 18px;
}

#cyberGrid.cards .card {
  break-inside: avoid;
  width: 100%;
  margin: 0 0 24px;
}

.card {
  grid-column: span 4;
  padding: 26px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
}

.card.is-clickable {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.is-clickable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card.is-clickable:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

#competences .card {
  transition: box-shadow 0.25s ease;
  overflow: visible;
  z-index: 0;
}

#competences .card::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--radius-xl) + 28px);
  background: radial-gradient(circle at center, rgba(142, 200, 255, 0.45), rgba(142, 200, 255, 0));
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: -1;
}

#competences .card:hover::after,
#competences .card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

#competences .card:hover {
  box-shadow: var(--shadow-lift), 0 0 36px rgba(142, 200, 255, 0.5);
}

#competences .card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  box-shadow: var(--shadow-lift), 0 0 40px rgba(142, 200, 255, 0.55);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(126, 200, 255, 0.1));
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}



.card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-e5 .site-header {
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  background: rgba(10, 18, 36, 0.65);
}

.page-e5-intro .breadcrumb {
  margin: 0 0 12px;
}

.page-e5-intro .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-e5-intro .breadcrumb a:hover {
  color: var(--primary);
}

.page-e5-intro .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-e5-intro .note {
  margin-top: 20px;
  max-width: 720px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.filter select {
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
}

#competencesIntro {
  margin-bottom: 30px;
  max-width: 620px;
}

#competencesIntro.is-clickable {
  cursor: pointer;
}

#competencesIntro.is-clickable:hover,
#competencesIntro.is-clickable:focus {
  color: var(--primary);
  text-decoration: underline;
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.skills-grid,
.skill-grid,
#skillsGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.bts-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}

.skill-card {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 320px;
  perspective: 1400px;
  cursor: pointer;
  outline: none;
}

.skill-card:focus-visible,
.skill-card.is-locked {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.skill-card.is-locked .skill-face {
  border-color: var(--primary);
  box-shadow: 0 24px 48px rgba(6, 12, 28, 0.55), 0 0 0 2px rgba(94, 209, 255, 0.2);
}

.skill-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: #050d1f;
}

.skill-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #050d1f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.skill-card.is-flipped .skill-inner {
  transform: rotateY(180deg);
}

.skill-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #050d1f;
  border: 1px solid rgba(142, 200, 255, 0.24);
  box-shadow: 0 24px 48px rgba(6, 12, 28, 0.38);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  pointer-events: auto;
  visibility: visible;
}

.skill-face::before,
.skill-face::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
}

.skill-face::before {
  inset: -40% 28% 58% -28%;
  background: radial-gradient(ellipse at top, rgba(142, 200, 255, 0.45), transparent 70%);
  opacity: 0.85;
}

.skill-face::after {
  inset: 52% -22% -35% 38%;
  background: radial-gradient(circle at bottom right, rgba(182, 137, 255, 0.32), transparent 68%);
  opacity: 0.6;
}

.skill-face > * {
  position: relative;
  z-index: 1;
}

.skill-face--front {
  z-index: 2;
}

.skill-face--back {
  transform: rotateY(180deg);
  padding: 24px;
  gap: 18px;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.08);
}

.skill-face--back::-webkit-scrollbar {
  width: 8px;
}

.skill-face--back::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.skill-face--back::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(6, 12, 28, 0.4);
}

.skill-card.is-flipped .skill-face--front {
  visibility: hidden;
  pointer-events: none;
}

.skill-card.is-flipped .skill-face--back {
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}

.skill-front {
  width: 100%;
  height: 100%;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.skill-icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 28px rgba(6, 12, 28, 0.32);
  overflow: hidden;
  flex-shrink: 0;
}

.skill-icon img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(6, 12, 28, 0.36));
}

.skill-icon .emoji {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-summary {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.skill-name,
.skill-name--front {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.skill-name--front {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(142, 200, 255, 0.18);
  color: rgba(208, 224, 255, 0.95);
  border: 1px solid rgba(142, 200, 255, 0.35);
  width: fit-content;
}

.skill-keywords {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-keywords li {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(182, 200, 232, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(142, 200, 255, 0.24);
}

.skill-face--back .skill-body {
  padding: 0;
  border: none;
  flex: 1;
  display: flex;
}

.skill-body-inner {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(6, 12, 26, 0.65);
  border: 1px solid rgba(142, 200, 255, 0.32);
  display: grid;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.skill-face--back .skill-body-inner {
  margin-top: 0;
}

.skill-desc {
  margin: 0;
  color: rgba(224, 235, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.55;
}

.skill-keywords--detailed {
  margin: 0;
}

.skill-keywords--detailed li {
  background: rgba(142, 200, 255, 0.18);
  color: var(--text);
  border-color: rgba(142, 200, 255, 0.42);
}


.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-soft);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}


.carousel-slide {
  position: relative;
  min-width: 100%;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}


.carousel-slide a,
.carousel-slide .carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.carousel-slide.is-active img {
  transform: scale(1.03);
  filter: none;
}

.carousel-slide:not(.is-active) img {
  filter: grayscale(0.15) saturate(0.85);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-strong);
  background: rgba(6, 12, 28, 0.6);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-nav.prev {
  left: 12px;
}

.carousel-nav.next {
  right: 12px;
}

.carousel-nav:hover {
  background: rgba(14, 28, 56, 0.7);
  transform: translateY(-50%) scale(1.05);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 56px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dot.active {
  border-color: var(--primary);
  transform: translateY(-3px);
  opacity: 1;
}

.carousel-dot:not(.active) {
  opacity: 0.7;
}


.contact-form {
  padding: 34px;
  display: grid;
  gap: 24px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18, 30, 58, 0.95), rgba(8, 14, 30, 0.92));
  border: 1px solid rgba(142, 200, 255, 0.26);
  box-shadow: 0 30px 50px rgba(6, 12, 28, 0.44);
}

.contact-form::before,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-form::before {
  inset: -35% -10% 55% 38%;
  background: radial-gradient(ellipse at top, rgba(94, 208, 255, 0.32), transparent 70%);
  opacity: 0.95;
}

.contact-form::after {
  inset: 45% -20% -30% 25%;
  background: radial-gradient(circle at bottom right, rgba(182, 137, 255, 0.28), transparent 65%);
  opacity: 0.75;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.form-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row--wide {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(159, 178, 214, 0.9);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(142, 200, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(9, 16, 32, 0.78);
  color: var(--text);
  font: inherit;
  backdrop-filter: blur(calc(var(--blur-md) * 0.6));
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 208, 255, 0.22);
  background: rgba(9, 16, 32, 0.9);
}

textarea {
  resize: vertical;
}

.site-footer {
  padding: 36px 0 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--primary);
}

.section.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.reveal.is-visible {
  opacity: 1;
  transform: none;
}

  @media (prefers-reduced-motion: reduce) {
    .section.reveal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }

    .skill-inner,
    .carousel-track {
      transition: none !important;
    }
  }

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

@media (max-width: 900px) {
  .section {
    padding: 100px 0;
  }

  .cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .contact-info,
  #contact .contact-form {
    padding: 28px;
  }

  .contact-info {
    order: 2;
  }

  #contact .contact-form {
    order: 1;
  }

  .contact-cta .btn {
    width: 100%;
  }

  #cyberGrid.cards {
    column-count: 2;
    column-gap: 18px;
  }

  #cyberGrid.cards .card {
    margin-bottom: 20px;
  }

  .card {
    grid-column: span 6;
  }

  .skills-grid,
  .skill-grid,
  #skillsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header {
    width: calc(100% - 24px);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 90px 0;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px;
    transform: translateY(-120%);
    transition: transform 0.28s ease;
    border-radius: var(--radius-xl);
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .nav-actions {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-text,
  .hero-card {
    padding: 24px;
  }

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

  .contact-header {
    margin-bottom: 28px;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-cta {
    flex-direction: column;
  }

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

  .form-row--wide {
    grid-column: auto;
  }

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

@media (max-width: 520px) {
  .quick-stats {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  #cyberGrid.cards {
    column-count: 1;
    column-gap: 0;
  }

  #cyberGrid.cards .card {
    margin-bottom: 18px;
  }

  .card {
    grid-column: span 2;
  }

  .skills-grid,
  .skill-grid,
  #skillsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-info,
  #contact .contact-form {
    padding: 24px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
}



/* Parcours timeline */
.timeline-wrap {
  position: relative;
  margin-top: 64px;
  padding: 0;
  --timeline-progress: 0;
}

.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(142, 200, 255, 0.28), rgba(182, 137, 255, 0.22));
  border-radius: 999px;
  opacity: 1;
  overflow: hidden;
}

.timeline-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--timeline-progress, 0) * 100%);
  background: linear-gradient(180deg, rgba(142, 200, 255, 0.95), rgba(182, 137, 255, 0.75));
  transition: height 0.45s ease;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 82px;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 176px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--order, 0) * 180ms);
  will-change: opacity, transform;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: none;
}

.timeline-item--left {
  justify-content: flex-end;
  padding-right: calc(50% + 56px);
}

.timeline-item--right {
  justify-content: flex-start;
  padding-left: calc(50% + 56px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(142, 200, 255, 0.32), 0 16px 32px rgba(6, 12, 28, 0.42);
  transform: translate(-50%, -50%);
  z-index: 2;
}

html[data-theme="light"] .timeline-marker {
  box-shadow: 0 0 0 6px rgba(60, 123, 255, 0.22), 0 12px 22px rgba(68, 92, 140, 0.24);
}

.timeline-card {
  position: relative;
  width: min(360px, 92%);
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--blur-md));
  padding: 26px 30px;
  display: grid;
  gap: 12px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 40px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(142, 200, 255, 0.6), rgba(182, 137, 255, 0.65));
  opacity: 0.85;
}

.timeline-item--left .timeline-card::before {
  right: -56px;
}

.timeline-item--right .timeline-card::before {
  left: -56px;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, rgba(142, 200, 255, 0.45), rgba(182, 137, 255, 0.55));
  color: var(--text);
  width: max-content;
}

.timeline-card .item-title {
  font-weight: 600;
}

.timeline-card .item-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline-card .muted {
  margin-top: 2px;
}

.timeline-card.has-extra {
  cursor: pointer;
}

.timeline-card.has-extra:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.timeline-details {
  margin: 10px 0 0;
}

.timeline-details .list-item {
  margin-bottom: 4px;
}

@media (max-width: 960px) {
  .timeline {
    gap: 70px;
  }

  .timeline-item--left {
    padding-right: calc(50% + 44px);
  }

  .timeline-item--right {
    padding-left: calc(50% + 44px);
  }

  .timeline-card {
    width: min(340px, 92%);
  }

  .timeline-card::before {
    width: 44px;
  }

  .timeline-item--left .timeline-card::before {
    right: -44px;
  }

  .timeline-item--right .timeline-card::before {
    left: -44px;
  }
}

@media (max-width: 720px) {
  .timeline-wrap {
    padding-left: 28px;
    margin-top: 48px;
  }

  .timeline-track {
    left: 24px;
    transform: none;
  }

  .timeline {
    gap: 56px;
  }

  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    justify-content: flex-start;
    padding: 0 0 0 64px;
  }

  .timeline-card {
    width: 100%;
    padding: 24px;
  }

  .timeline-card::before {
    left: -40px;
    right: auto;
    width: 40px;
  }

  .timeline-marker {
    left: 24px;
  }
}

@media (max-width: 520px) {
  .timeline {
    gap: 44px;
  }

  .timeline-wrap {
    padding-left: 24px;
  }

  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    padding-left: 56px;
  }

  .timeline-card {
    padding: 22px 20px;
  }

  .timeline-card::before {
    left: -32px;
    width: 32px;
  }

  .timeline-marker {
    left: 20px;
    width: 18px;
    height: 18px;
  }
}














.timeline-extra-hint {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.timeline-card.is-expanded .timeline-extra-hint {
  opacity: 0;
}

.timeline-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.timeline-card.is-expanded .timeline-extra {
  opacity: 1;
  max-height: 260px;
  pointer-events: auto;
}


.carousel-slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(0deg, rgba(5, 13, 31, 0.85), rgba(5, 13, 31, 0));
  color: var(--highlight);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

.carousel-slide-caption strong {
  font-size: 0.95rem;
  color: var(--text);
}

.carousel-slide-caption span {
  font-size: 0.82rem;
  color: var(--muted);
}

.carousel-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 12px;
  background: rgba(6, 12, 28, 0.6);
  border-top: 1px solid var(--glass-border);
  color: var(--highlight);
  font-size: 0.88rem;
}

.carousel-caption .caption-title {
  font-weight: 600;
  color: var(--text);
}

.carousel-caption .caption-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 16px;
}

.carousel-control {
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.carousel-control[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.carousel-counter {
  font-size: 0.85rem;
  color: var(--muted);
}

.carousel-dot:focus-visible,
.carousel-control:focus-visible,
.carousel-nav:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .carousel-dots {
    gap: 6px;
    padding: 10px 12px;
  }

  .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border-width: 0;
  }

  .carousel-dot img {
    display: none;
  }

  .carousel-caption {
    padding: 12px 16px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-slide img,
  .carousel-dot,
  .carousel-control {
    transition: none !important;
  }
}


.cyber-card {
  display: grid;
  gap: 18px;
}

.cyber-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cyber-detail-panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(6, 18, 32, 0.8);
  padding: 18px;
  margin-top: 6px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.cyber-detail-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.cyber-detail-inner {
  display: grid;
  gap: 14px;
}

.cyber-detail-inner img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  justify-self: flex-start;
}

@media (max-width: 640px) {
  .cyber-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.cyber-detail-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.cyber-detail-gallery .cyber-figure {
  margin: 0;
  padding: 12px;
  background: rgba(6, 20, 8, 0.58);
  border: 1px solid rgba(0, 211, 100, 0.3);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  justify-items: flex-start;
}

.terminal-scope .cyber-detail-gallery .cyber-figure {
  background: rgba(6, 20, 8, 0.58);
  border-color: rgba(0, 211, 100, 0.35);
}

.cyber-figure-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--term-text);
}

.cyber-figure-title {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--term-primary);
  color: #06110a;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cyber-figure-desc {
  color: var(--term-muted);
}

.cyber-figure > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cyber-figure > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 211, 100, 0.18);
}

.cyber-figure > a:focus-visible {
  outline: 2px solid var(--term-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(0, 211, 100, 0.4);
}

.cyber-figure > a img {
  display: block;
}

.cyber-detail-gallery::-webkit-scrollbar {
  width: 6px;
}

.cyber-detail-gallery::-webkit-scrollbar-thumb {
  background: rgba(94, 208, 255, 0.28);
  border-radius: 999px;
}

.cyber-detail-gallery:hover::-webkit-scrollbar-thumb {
  background: rgba(94, 208, 255, 0.4);
}

.cyber-detail-gallery figure {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(6, 12, 20, 0.65);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.cyber-detail-gallery img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.cyber-detail-gallery figure:hover img {
  transform: scale(1.04);
}

.cyber-detail-results {
  margin-top: 12px;
}

.cyber-detail-tags {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .cyber-detail-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}



.slide-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(142, 200, 255, 0.35);
  background: rgba(6, 13, 31, 0.75);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 9;
}

.slide-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(15, 28, 54, 0.85);
  box-shadow: 0 12px 28px rgba(6, 12, 28, 0.45);
}

.slide-nav:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.slide-nav.prev {
  left: 24px;
}

.slide-nav.next {
  right: 24px;
}

@media (max-width: 960px) {
  .mindmap {
    --mindmap-offset: 0;
    --mindmap-ring: 0px;
    --mindmap-dot-radius: 0px;
    padding: 64px 0;
  }
  .mindmap-stage {
    width: 100%;
    aspect-ratio: auto;
    transform: none;
    display: grid;
    gap: 24px;
    justify-items: stretch;
  }
  .mindmap-display {
    position: relative;
    transform: none;
    width: 100%;
    max-height: none;
    opacity: 1;
  }
  .mindmap-group {
    position: static;
    transform: none;
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }
  .mindmap-group::before,
  .mindmap::after {
    display: none;
  }
  .mindmap-leaves {
    display: none;
  }
  .mindmap-hub,
  .mindmap-leaf,
  .mindmap-node-central {
    width: 100%;
    transform: none !important;
  }
  .mindmap-node-central {
    position: relative;
    top: auto;
    left: auto;
  }

  .slide-deck {
    max-height: none;
    overflow: visible;
  }
  .slide-nav {
    display: none;
  }
  .slide-card::before {
    left: 16px;
    top: 16px;
  }
  .slide-card::after {
    display: none;
  }
}
