/* Modal Compétence */
.modal-skill {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-skill.active {
  display: flex;
}
.modal-skill-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 3, 21, 0.85);
  backdrop-filter: blur(2px);
  animation: modalFadeIn 0.3s;
}
.modal-skill-content {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 8px 48px 0 rgba(0, 0, 0, 0.45);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 95vw;
  width: 400px;
  color: var(--text);
  animation: modalPopIn 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-skill-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.modal-skill-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(193, 92, 255, 0.12);
}
.modal-skill-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;

  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-3),
    var(--accent-2)
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-skill-body {
  width: 100%;
}
.modal-skill-text {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  color: var(--text);
  box-shadow: 0 1px 8px 0 rgba(193, 92, 255, 0.07);
}

.modal-skill-text ul {
  margin: 0;
  padding-left: 1.2rem;
}

.modal-skill-text li {
  margin-bottom: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.modal-skill-text li:last-child {
  margin-bottom: 0;
}
.modal-skill-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2.1rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.modal-skill-close:hover {
  color: var(--accent-2);
}
@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:root {
  --bg: #05010b;
  --bg-2: #0a0315;
  --body-bg:
    radial-gradient(circle at top, rgba(193, 92, 255, 0.08), transparent 26%),
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 138, 61, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, #020106 0%, #06010d 40%, #040108 100%);
  --surface: linear-gradient(
    180deg,
    rgba(24, 6, 42, 0.92),
    rgba(9, 3, 18, 0.96)
  );
  --surface-soft: rgba(20, 6, 35, 0.82);
  --line: rgba(190, 95, 255, 0.18);
  --line-strong: rgba(255, 137, 59, 0.42);
  --text: #f8f5ff;
  --muted: #cbbddd;
  --accent: #c15cff;
  --accent-2: #ff8a3d;
  --accent-3: #ff5fa2;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --navbar-bg: rgba(3, 1, 7, 0.9);
  --navbar-link: rgba(255, 255, 255, 0.9);
  --navbar-link-active: #ffffff;
  --soft-fill: rgba(255, 255, 255, 0.035);
  --input-bg: rgba(5, 2, 10, 0.95);
  --input-text: #ffffff;
  --placeholder: #8f82a3;
  --hover-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ff;
  --bg-2: #fff8f3;
  --body-bg:
    radial-gradient(circle at top, rgba(193, 92, 255, 0.12), transparent 28%),
    radial-gradient(
      circle at 85% 12%,
      rgba(255, 138, 61, 0.14),
      transparent 20%
    ),
    linear-gradient(180deg, #fffafd 0%, #f7f3ff 46%, #fff8f3 100%);
  --surface: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 250, 245, 0.9)
  );
  --surface-soft: rgba(255, 255, 255, 0.82);
  --line: rgba(124, 61, 185, 0.2);
  --line-strong: rgba(217, 103, 44, 0.42);
  --text: #241432;
  --muted: #665a75;
  --accent: #8f35d5;
  --accent-2: #db6428;
  --accent-3: #d93d84;
  --shadow: 0 18px 48px rgba(71, 42, 105, 0.14);
  --navbar-bg: rgba(255, 252, 248, 0.88);
  --navbar-link: rgba(36, 20, 50, 0.78);
  --navbar-link-active: #241432;
  --soft-fill: rgba(143, 53, 213, 0.055);
  --input-bg: rgba(255, 255, 255, 0.94);
  --input-text: #241432;
  --placeholder: #8a7c99;
  --hover-shadow: 0 22px 50px rgba(71, 42, 105, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--body-bg);
  color: var(--text);
}

a {
  text-decoration: none;
}

.navbar {
  background: var(--navbar-bg);
  border-bottom: 1px solid rgba(193, 92, 255, 0.18);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent) !important;
  letter-spacing: -0.03em;
}

.nav-link {
  color: var(--navbar-link) !important;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  opacity: 0.9;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navbar-link-active) !important;
  opacity: 1;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.theme-toggle-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.theme-toggle-sun {
  opacity: 0;
  transform: rotate(-35deg) scale(0.75);
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow:
    0 -11px 0 -7px var(--accent-2),
    0 11px 0 -7px var(--accent-2),
    11px 0 0 -7px var(--accent-2),
    -11px 0 0 -7px var(--accent-2),
    8px 8px 0 -7px var(--accent-2),
    -8px -8px 0 -7px var(--accent-2),
    8px -8px 0 -7px var(--accent-2),
    -8px 8px 0 -7px var(--accent-2);
}

.theme-toggle-moon {
  opacity: 1;
  transform: scale(1);
  border-radius: 50%;
  background: var(--accent);
}

.theme-toggle-moon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navbar-bg);
}

:root[data-theme="light"] .theme-toggle-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

:root[data-theme="light"] .theme-toggle-moon {
  opacity: 0;
  transform: rotate(35deg) scale(0.75);
}

.hero {
  padding: 8.5rem 0 4.2rem;
}

.panel,
.feature-card,
.project-card,
.method-card,
.contact-card,
.timeline-panel,
.skill-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::before,
.feature-card::before,
.project-card::before,
.method-card::before,
.contact-card::before,
.timeline-panel::before,
.skill-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(193, 92, 255, 0.04),
    transparent 45%,
    rgba(255, 138, 61, 0.04)
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 92, 255, 0.25);
  background: rgba(193, 92, 255, 0.08);
  color: #f0d6ff;
  font-weight: 600;
  font-size: 0.92rem;
}

:root[data-theme="light"] .hero-badge {
  border-color: rgba(143, 53, 213, 0.24);
  background: rgba(143, 53, 213, 0.08);
  color: #5d257f;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-3) 45%,
    var(--accent-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-text,
.card-text,
.timeline-text,
.feature-text {
  color: var(--muted);
  line-height: 1.85;
}

.btn-main {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(193, 92, 255, 0.18);
}

.btn-main:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-alt:hover {
  background: rgba(255, 138, 61, 0.08);
  color: #fff;
}

.terminal-box {
  background: linear-gradient(
    180deg,
    rgba(12, 4, 22, 0.96),
    rgba(6, 2, 12, 0.98)
  );
  border: 1px solid rgba(193, 92, 255, 0.18);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  font-family: "Courier New", monospace;
}

:root[data-theme="light"] .terminal-box {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 249, 244, 0.94)
  );
  border-color: rgba(124, 61, 185, 0.2);
}

:root[data-theme="light"] .terminal-head {
  color: #725882;
}

:root[data-theme="light"] .terminal-line {
  color: var(--text);
}

:root[data-theme="light"] .terminal-key {
  color: var(--accent-2);
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #b392cf;
}

.terminal-line {
  margin-bottom: 0.85rem;
  color: #f7efff;
  word-break: break-word;
}

.terminal-key {
  color: #ffb17f;
}

section {
  padding: 1.3rem 0 0;
  scroll-margin-top: 90px;
}

.section-label {
  color: #bc91da;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

:root[data-theme="light"] .section-label,
:root[data-theme="light"] .mini-title {
  color: #704086;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.title-accent {
  display: inline-block;
  position: relative;
}

.title-accent::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 0.8rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.feature-card,
.project-card,
.method-card,
.contact-card,
.skill-panel {
  height: 100%;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-card:hover,
.project-card:hover,
.method-card:hover,
.contact-card:hover,
.skill-panel:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 61, 0.3);
  background: rgba(255, 138, 61, 0.08);
  color: var(--accent-2);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mini-title {
  font-size: 0.95rem;
  color: #dbbaf7;
  margin-bottom: 1rem;
  text-transform: capitalize;
  font-weight: 700;
}

.chip {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  margin: 0 0.45rem 0.45rem 0;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(193, 92, 255, 0.08);
  border: 1px solid rgba(193, 92, 255, 0.16);
  color: #f2e7ff;
}

:root[data-theme="light"] .chip {
  background: rgba(143, 53, 213, 0.08);
  border-color: rgba(143, 53, 213, 0.17);
  color: #442157;
}

.project-subtitle {
  color: #ffb17f;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

:root[data-theme="light"] .project-subtitle,
:root[data-theme="light"] .timeline-date {
  color: var(--accent-2);
}

.project-points {
  padding-left: 1.1rem;
  color: #f2ebff;
}

.project-points li {
  margin-bottom: 0.45rem;
}

.project-category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(
    180deg,
    rgba(28, 8, 48, 0.98),
    rgba(10, 3, 20, 0.98)
  );
  color: var(--text);
  text-decoration: none;
}

:root[data-theme="light"] .project-category-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 248, 242, 0.92)
  );
}

.project-category-card:hover,
.project-category-card:focus {
  color: var(--text);
  text-decoration: none;
}

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

.project-category-card h3,
.project-category-card .card-text {
  color: var(--text) !important;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0.7rem 0 0.45rem;
}

.project-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.project-category-card:hover .project-link::after {
  transform: translateX(4px);
}

.page-shell {
  padding: 8rem 0 3rem;
}

.page-intro {
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #fff;
}

:root[data-theme="light"] .back-link:hover {
  color: var(--accent);
}

.project-list-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  height: 100%;
}

.project-list-card h3 {
  color: var(--text);
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-card-chips .chip {
  margin: 0;
}

.project-detail-btn {
  margin: 0;
  white-space: nowrap;
}

.project-detail-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-detail-modal .modal-header,
.project-detail-modal .modal-footer {
  border-color: rgba(193, 92, 255, 0.16);
}

.project-detail-modal .modal-title {
  font-weight: 800;
}

.project-detail-modal .btn-close {
  filter: invert(1);
}

:root[data-theme="light"] .project-detail-modal .btn-close {
  filter: none;
}

:root[data-theme="light"] .btn-close-white {
  filter: none;
}

.project-detail-list {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.stage-report {
  display: grid;
  gap: 1.25rem;
}

.stage-report-hero,
.stage-report-section,
.stage-task {
  background: var(--soft-fill);
  border: 1px solid rgba(193, 92, 255, 0.14);
  border-radius: 18px;
  padding: 1.2rem;
}

.stage-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.stage-report h3,
.stage-report h4,
.stage-report h5 {
  color: var(--text);
}

.stage-report h3 {
  margin: 0.4rem 0 0.75rem;
  font-weight: 800;
}

.stage-report h4 {
  margin-bottom: 1rem;
  font-weight: 800;
}

.stage-report h5 {
  margin: 0.8rem 0 0.45rem;
  font-weight: 750;
}

.stage-report p {
  color: var(--muted);
  line-height: 1.75;
}

.stage-report-place {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.24);
  border-radius: 14px;
  padding: 1rem;
}

.stage-report-place strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.4;
}

.stage-report-place-label {
  width: fit-content;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stage-task {
  margin-top: 1rem;
}

.stage-report-notice {
  background: rgba(255, 138, 61, 0.08);
  border-color: rgba(255, 138, 61, 0.28);
}

.stage-report-notice h4 {
  color: var(--accent-2);
}

.stage-date {
  color: var(--accent-2) !important;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.stage-report-figure {
  margin: 1rem 0;
}

.stage-report-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 0.75rem;
}

.stage-report-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

.stage-report-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.progress-wrap {
  margin-top: 1.1rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f8f2ff;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

:root[data-theme="light"] .progress-label,
:root[data-theme="light"] .project-points {
  color: var(--text);
}

.progress.custom-progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar.custom-bar {
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-3),
    var(--accent-2)
  );
  border-radius: 999px;
}

.timeline-panel {
  padding: 2rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.35rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(193, 92, 255, 0.65),
    rgba(255, 138, 61, 0.4)
  );
}

/* PARTIE SKILLS */
.skills-category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.skills-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--soft-fill);
  border: 1px solid rgba(193, 92, 255, 0.12);
  border-radius: 20px;
  padding: 1.8rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(193, 92, 255, 0.07);
}

.skill-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.skill-card span {
  display: block;
  font-weight: 600;
  color: var(--text);
}
/* FIN PARTIE SKILLS */

/* PARTIE CSS CV */
.btn-cv {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(193, 92, 255, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-cv:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(255, 138, 61, 0.08);
  color: white;
}

:root[data-theme="light"] .btn-cv:hover,
:root[data-theme="light"] .btn-certif:hover,
:root[data-theme="light"] .social-box:hover {
  color: var(--text);
}
/*FIN PARTIE CSS CV */
/* PARTIE BUTTON CERTIFICATS AZURE */
.btn-certif {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid rgba(193, 92, 255, 0.25);
  background: rgba(193, 92, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-certif:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(255, 138, 61, 0.08);
  color: white;
}
/* FIN PARTIE BUTTON CERTIFICATS AZURE */

/* PARTIE CONTACT */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.social-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(193, 92, 255, 0.25);
  background: rgba(193, 92, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  transition: all 0.25s ease;
}

.social-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  background: rgba(255, 138, 61, 0.08);
  color: white;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.custom-input {
  background: var(--input-bg);
  border: 1px solid rgba(193, 92, 255, 0.22);
  border-radius: 14px;
  color: var(--input-text);
  padding: 0.9rem 1rem;
}

.custom-input:focus {
  background: var(--input-bg);
  border-color: var(--accent);
  box-shadow: none;
  color: var(--input-text);
}

.custom-input::placeholder {
  color: var(--placeholder);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.btn-submit-contact {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 0.2s ease;
}

.btn-submit-contact:hover {
  transform: translateY(-2px);
}

.social-box i {
  font-size: 1.7rem;
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.github-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(39%) saturate(1552%)
    hue-rotate(232deg) brightness(101%) contrast(101%)
    drop-shadow(0 0 6px rgba(193, 92, 255, 0.45));
}

:root[data-theme="light"] .github-icon {
  filter: brightness(0) saturate(100%) invert(27%) sepia(41%) saturate(1716%)
    hue-rotate(245deg) brightness(88%) contrast(92%);
}

.linkedin-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(89%) saturate(1800%)
    hue-rotate(355deg) brightness(103%) contrast(101%)
    drop-shadow(0 0 6px rgba(255, 138, 61, 0.45));
}

:root[data-theme="light"] .linkedin-icon {
  filter: brightness(0) saturate(100%) invert(40%) sepia(75%) saturate(1055%)
    hue-rotate(348deg) brightness(95%) contrast(88%);
}

/* FIN PARTIE CONTACT */
/* PARTIE FOOTER */

.footer-links a {
  color: #b99ed2;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 1.8rem;
}
/* FIN PARTIE FOOTER */
/* MENTIONS LEGALES */
.legal-modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  backdrop-filter: blur(14px);
}

.legal-modal-body {
  color: var(--muted);
  line-height: 1.8;
}

.legal-modal-body h6 {
  color: var(--accent-2);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.legal-modal-body a {
  color: var(--accent);
}

.legal-modal-body hr {
  border-color: rgba(193, 92, 255, 0.15);
  margin: 1.5rem 0;
}
.modal-backdrop.show {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.75);
  opacity: 1 !important;
}

:root[data-theme="light"] .modal-backdrop.show {
  background: rgba(36, 20, 50, 0.35);
}
/* FIN MENTIONS LEGALES */

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.28rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(193, 92, 255, 0.14);
}

.timeline-date {
  color: #ffb17f;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.timeline-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.timeline-list li {
  padding-left: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--accent);
  width: 0;
  animation:
    typing 7s steps(8, end) infinite,
    blink 0.8s infinite;
}

footer {
  color: #b99ed2;
  border-top: 1px solid rgba(193, 92, 255, 0.16);
  margin-top: 4rem;
  padding: 1.2rem 0 2rem;
}

:root[data-theme="light"] footer,
:root[data-theme="light"] .footer-links a {
  color: #704d83;
}

@keyframes typing {
  /* 0% à 30% : Le texte s'écrit (environ 1.5s) */
  0% {
    width: 0;
  }
  30% {
    width: 5rem;
  }

  /* 30% à 80% : Le texte reste affiché (pause de 2.5s) */
  80% {
    width: 5rem;
  }

  /* 81% à 100% : Le texte disparaît brutalement pour recommencer */
  81%,
  100% {
    width: 0;
  }
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 7.5rem;
  }

  .theme-toggle {
    margin-top: 0.8rem;
  }

  .stage-report-hero,
  .stage-report-grid,
  .stage-report-images {
    grid-template-columns: 1fr;
  }

  .project-detail-modal .modal-header {
    align-items: flex-start;
    gap: 0.7rem;
  }
}
