@charset "UTF-8";
/* ---- SYSTÈME DARK/LIGHT AVEC CSS VARIABLES ---- */
:root {
  --color-primary: #02a77d;
  --color-primary-dark: #018c6a;
  --color-accent: #027a80;
  --color-light: #f2f3c1;
  --color-primary-opacity: rgba(2, 167, 125, 0.15);
  /* Mode Light (défaut) - Optimisé lisibilité */
  --bg-main: #ffffff;
  --bg-secondary: #f5f6f3;
  --bg-overlay: rgba(0, 0, 0, 0.8);
  --text-main: #111111;
  --text-secondary: #555555;
  --border-color: #d0d0d0;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-main: 0 8px 24px rgba(2, 167, 125, 0.2);
}

/* Mode Dark */
html[data-theme=dark] {
  --bg-main: #0f1419;
  --bg-secondary: #1a1f2b;
  --bg-overlay: rgba(15, 20, 25, 0.94);
  --text-main: #f2f3c1;
  --text-secondary: #b0b0a8;
  --border-color: #2a3038;
  --glass-bg: rgba(26, 31, 43, 0.5);
  --glass-hover: rgba(26, 31, 43, 0.7);
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-main: 0 8px 24px rgba(3, 196, 144, 0.25);
}

/* ---- VARIABLES SCSS ---- */
/* ---- PLACEHOLDERS ---- */
.skills-cta, .modal .modal-box .modal-icon, .contact-section .contact-link-card .contact-link-icon, .accueil-side .accueil-side-left, .loader, .modal .modal-box .content-modal, .modal .modal-box, .modal, .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader, .modal, #particles-js {
  width: 100%;
  height: 100%;
}

.portfolio-side .portfolio-button, .modal .modal-box .modal-btn, .modal .modal-box button {
  padding: 10px 24px;
  height: 40px;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background-color: transparent;
  color: var(--color-primary);
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.portfolio-side .portfolio-button:hover, .modal .modal-box .modal-btn:hover, .modal .modal-box button:hover {
  background-color: var(--color-primary);
  color: var(--bg-main);
}
.portfolio-side .portfolio-button:active, .modal .modal-box .modal-btn:active, .modal .modal-box button:active {
  opacity: 0.8;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background-color: var(--color-primary);
  color: var(--bg-main);
}

body {
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-main);
  font-family: "Inter", "Poppins", sans-serif;
  position: relative;
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- ParticlesJS ---- */
#particles-js {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* ---- Wrapper ---- */
.wrapper {
  min-height: 100vh;
  margin: 0 50px;
  overflow-x: clip;
  position: relative;
}

.naviguation {
  position: absolute;
}

.logo-container {
  position: fixed;
  margin-top: 40px;
  z-index: 100;
}

/* ---- MODAL ---- */
.modal {
  top: 0;
  left: 0;
  position: fixed;
  background-color: var(--bg-overlay);
  display: none;
  z-index: 1000;
}
.modal.active {
  display: flex;
}
.modal .modal-box {
  position: relative;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  min-width: 280px;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-main);
}
.modal .modal-box .content-modal {
  flex-direction: column;
  text-align: center;
}
.modal .modal-box .content-modal p {
  text-transform: uppercase;
  font-size: clamp(14px, 2vw, 18px);
  margin-bottom: 15px;
  font-weight: 500;
}
.modal .modal-box .content-modal img {
  width: clamp(24px, 2vw, 32px);
  height: clamp(24px, 2vw, 32px);
}
.modal .modal-box button {
  margin-top: 30px;
}

/* ---- TITLES ---- */
.title,
.title-right,
.title-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(32px, 8vw, 72px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-main);
}
.title p::first-letter,
.title-right p::first-letter,
.title-left p::first-letter {
  color: var(--color-primary);
}

.title-right::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-primary);
}

.title-left::before {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-primary);
}

/* ---- LOADER ---- */
.loader {
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-secondary);
  z-index: 5;
}
.loader p {
  font-size: 18px;
  margin-bottom: 30px;
  text-transform: uppercase;
  user-select: none;
  color: var(--text-main);
  font-weight: 600;
}

.loader-img {
  stroke: url(#linear);
  stroke-dasharray: 100;
  animation: dash 3s linear infinite;
}

.fondu-out {
  opacity: 0;
  z-index: -1;
  transition: all 1.5s ease-out;
}

/* ---- Footer ---- */
footer {
  padding: 30px 0;
}
footer p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
footer a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--color-accent);
}

/* ---- Animations ---- */
@keyframes dash {
  to {
    stroke-dashoffset: 1000;
  }
}
@keyframes btn-anim1 {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}
@keyframes btn-anim2 {
  0% {
    top: -100%;
  }
  50%, 100% {
    top: 100%;
  }
}
@keyframes btn-anim3 {
  0% {
    right: -100%;
  }
  50%, 100% {
    right: 100%;
  }
}
@keyframes btn-anim4 {
  0% {
    bottom: -100%;
  }
  50%, 100% {
    bottom: 100%;
  }
}
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes glowMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ---- THEME TOGGLE BUTTON ---- */
.theme-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background-color: var(--glass-bg);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  color: var(--color-primary);
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  background-color: var(--glass-hover);
  box-shadow: 0 4px 12px rgba(3, 196, 144, 0.2);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: all 0.4s ease;
  position: absolute;
}
.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.theme-toggle[data-theme=dark] .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.theme-toggle[data-theme=dark] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Responsive du bouton */
@media (max-width: 768px) {
  .theme-toggle {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 576px) {
  .theme-toggle {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
}
/* ---- FLOATING NAVIGATION ---- */
.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(100px);
  z-index: 1001;
  opacity: 0;
  animation: navSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes navSlideUp {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, var(--shadow-main);
  transition: all 0.3s ease;
}
.nav-container:hover {
  background: var(--glass-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--shadow-main);
}

.nav-link,
.nav-theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.nav-link svg,
.nav-theme-toggle svg {
  transition: all 0.3s ease;
}
.nav-link:hover,
.nav-theme-toggle:hover {
  color: var(--color-primary);
  background: var(--color-primary-opacity);
  transform: translateY(-2px);
}
.nav-link:hover .nav-tooltip,
.nav-theme-toggle:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}
.nav-link.active,
.nav-theme-toggle.active {
  color: var(--color-primary);
  background: var(--color-primary-opacity);
}
.nav-link.active::after,
.nav-theme-toggle.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
}

.nav-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-color);
}
.nav-tooltip::before {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg-secondary);
  z-index: 1;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 6px;
}

/* Theme Toggle dans la navbar */
.nav-theme-toggle {
  overflow: hidden;
}
.nav-theme-toggle svg {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.nav-theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.nav-theme-toggle[data-theme=dark] .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.nav-theme-toggle[data-theme=dark] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Effet de scroll - nav devient plus compacte */
.floating-nav.scrolled .nav-container {
  padding: 8px 12px;
  gap: 4px;
}
.floating-nav.scrolled .nav-link,
.floating-nav.scrolled .nav-theme-toggle {
  width: 40px;
  height: 40px;
}

/* Hide nav when at top of page (optional - hero visible) */
.floating-nav.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .floating-nav {
    bottom: 20px;
  }
  .nav-container {
    padding: 8px 10px;
    gap: 2px;
  }
  .nav-link,
  .nav-theme-toggle {
    width: 40px;
    height: 40px;
  }
  .nav-link svg,
  .nav-theme-toggle svg {
    width: 16px;
    height: 16px;
  }
  .nav-tooltip {
    display: none;
  }
  .nav-divider {
    height: 20px;
    margin: 0 4px;
  }
}
@media (max-width: 480px) {
  .floating-nav {
    bottom: 16px;
    width: calc(100% - 32px);
    max-width: 340px;
  }
  .nav-container {
    width: 100%;
    justify-content: space-around;
    padding: 6px 8px;
  }
  .nav-link,
  .nav-theme-toggle {
    width: 36px;
    height: 36px;
  }
  .nav-link svg,
  .nav-theme-toggle svg {
    width: 14px;
    height: 14px;
  }
  .nav-divider {
    display: none;
  }
}
/* ---- HERO - Style outlined typographique ---- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-typo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-typo .typo-left,
.hero-typo .typo-right {
  position: absolute;
  display: flex;
}
.hero-typo .typo-left {
  top: 22%;
  left: -2%;
}
.hero-typo .typo-right {
  bottom: 18%;
  right: -2%;
}
.hero-typo .letter {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  opacity: 0;
  animation: letterReveal 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.5s);
}

@keyframes letterReveal {
  0% {
    opacity: 0;
    -webkit-text-stroke-color: #5de4d9;
    transform: translateY(20px);
    filter: blur(8px) drop-shadow(0 0 20px #5de4d9);
  }
  40% {
    opacity: 0.7;
    -webkit-text-stroke-color: #5de4d9;
    filter: blur(0) drop-shadow(0 0 15px #5de4d9);
  }
  70% {
    opacity: 0.5;
    filter: drop-shadow(0 0 8px var(--color-primary));
  }
  100% {
    opacity: 1;
    -webkit-text-stroke-color: var(--color-primary);
    transform: translateY(0);
    filter: drop-shadow(0 0 3px var(--color-primary));
  }
}
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 0 20px;
}
.hero-center .hero-line {
  width: 60px;
  height: 1px;
  background: var(--color-primary);
}
.hero-center .hero-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin: 0;
}
.hero-center h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.hero-center h1 strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Responsive Hero */
@media screen and (max-width: 768px) {
  .hero-typo .letter {
    font-size: clamp(60px, 18vw, 140px);
    letter-spacing: -0.05em;
  }
  .hero-typo .typo-left {
    top: 25%;
    left: -1%;
  }
  .hero-typo .typo-right {
    bottom: 22%;
    right: -1%;
  }
  .hero-center {
    gap: 20px;
  }
  .hero-center h1 {
    font-size: clamp(18px, 5vw, 28px);
  }
}
@media screen and (max-width: 480px) {
  .hero-typo .letter {
    font-size: clamp(45px, 18vw, 70px);
    letter-spacing: -0.06em;
  }
  .hero-typo .typo-left {
    top: 28%;
    left: 0;
  }
  .hero-typo .typo-right {
    bottom: 25%;
    right: 0;
  }
  @keyframes letterReveal {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }
    50% {
      opacity: 0.5;
      -webkit-text-stroke-color: #5de4d9;
    }
    100% {
      opacity: 0.35;
      transform: translateY(0);
    }
  }
  .hero-center .hero-line {
    width: 40px;
  }
  .hero-center .hero-label {
    font-size: 10px;
    letter-spacing: 2px;
  }
}
/* ---- Accueil (legacy) ---- */
.accueil-side {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}
.accueil-side .accueil-side-left,
.accueil-side .accueil-side-right {
  width: 100%;
}
.accueil-side .accueil-side-left img {
  width: clamp(120px, 20vw, 220px);
  border-radius: 50%;
  filter: drop-shadow(var(--shadow-main));
  user-select: none;
}
.accueil-side .accueil-side-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.accueil-side .accueil-side-right span {
  font-family: "Poppins", sans-serif;
  font-size: clamp(20px, 4.5vw, 48px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.slogan-bold {
  font-weight: 700;
}

.slogan-green,
.title-blue {
  color: var(--color-primary);
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  vertical-align: baseline;
  letter-spacing: inherit;
}

/* ---- Section Introduction ---- */
.intro-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  position: relative;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.intro-text {
  font-size: clamp(25px, 2vw, 38px);
  font-weight: 400;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}
.intro-text strong {
  font-weight: 600;
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .intro-section {
    padding: 100px 30px;
  }
  .intro-section::before {
    width: 300px;
    height: 300px;
  }
  .intro-text {
    font-size: clamp(18px, 5vw, 28px);
  }
}
@media screen and (max-width: 480px) {
  .intro-section {
    padding: 80px 20px;
  }
  .intro-text {
    font-size: clamp(16px, 5vw, 22px);
  }
}
/* ---- Contact Section - Style Simplifié ---- */
.contact-section {
  padding: 80px 0;
  min-height: auto;
}
.contact-section .contact-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  align-items: center;
}
.contact-section .contact-separator {
  width: 1px;
  height: 80%;
  min-height: 300px;
  background: linear-gradient(to bottom, transparent, var(--border-color) 20%, var(--color-primary) 50%, var(--border-color) 80%, transparent);
  margin: 0 40px;
  align-self: center;
}
.contact-section .contact-form-container,
.contact-section .contact-links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-section .contact-container {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0 20px;
}
.contact-section .contact-card--simple,
.contact-section .contact-card--form {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 50px 40px;
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow-light);
  text-align: center;
  height: auto;
}
.contact-section .contact-header {
  margin-bottom: 40px;
}
.contact-section .contact-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}
.contact-section .contact-header p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}
.contact-section .contact-form {
  text-align: left;
}
.contact-section .contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-section .contact-form .form-group {
  position: relative;
}
.contact-section .contact-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-section .contact-form .form-group label .required {
  color: var(--color-primary);
}
.contact-section .contact-form .form-group input,
.contact-section .contact-form .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 15px;
  color: var(--text-main);
  transition: all 0.3s ease;
  resize: vertical;
}
.contact-section .contact-form .form-group input::placeholder,
.contact-section .contact-form .form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.contact-section .contact-form .form-group input:focus,
.contact-section .contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-opacity);
}
.contact-section .contact-form .form-group input.error,
.contact-section .contact-form .form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}
.contact-section .contact-form .form-group input.valid,
.contact-section .contact-form .form-group textarea.valid {
  border-color: var(--color-primary);
}
.contact-section .contact-form .form-group textarea {
  min-height: 120px;
  max-height: 300px;
}
.contact-section .contact-form .form-group .form-error {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 6px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}
.contact-section .contact-form .form-group .form-error.visible {
  opacity: 1;
  transform: translateY(0);
}
.contact-section .contact-form .form-group .char-counter {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 4px;
}
.contact-section .contact-form .captcha-container {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-section .contact-form .captcha-container .cf-turnstile {
  margin-bottom: 8px;
}
.contact-section .contact-form .form-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.contact-section .contact-form .form-submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-main);
}
.contact-section .contact-form .form-submit:active:not(:disabled) {
  transform: translateY(0);
}
.contact-section .contact-form .form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.contact-section .contact-form .form-submit.loading .btn-text,
.contact-section .contact-form .form-submit.loading .btn-icon {
  opacity: 0;
}
.contact-section .contact-form .form-submit.loading .btn-loader {
  opacity: 1;
}
.contact-section .contact-form .form-submit .btn-loader {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.contact-section .contact-form .form-submit .btn-loader svg {
  animation: spin 1s linear infinite;
}
.contact-section .contact-form .form-submit .btn-icon {
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.contact-section .contact-form .form-submit:hover .btn-icon {
  transform: translateX(4px);
}
.contact-section .contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-section .contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.contact-section .contact-link-card:hover {
  border-color: var(--color-primary);
  background: var(--glass-hover);
  transform: translateX(8px);
}
.contact-section .contact-link-card:hover .contact-link-arrow {
  opacity: 1;
  transform: translateX(0);
}
.contact-section .contact-link-card:hover .contact-link-icon {
  background: var(--color-primary);
}
.contact-section .contact-link-card:hover .contact-link-icon svg {
  color: #ffffff;
}
.contact-section .contact-link-card .contact-link-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-opacity);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.contact-section .contact-link-card .contact-link-icon svg {
  color: var(--color-primary);
  transition: color 0.3s ease;
}
.contact-section .contact-link-card .contact-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  flex: 1;
}
.contact-section .contact-link-card .contact-link-text .contact-link-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.contact-section .contact-link-card .contact-link-text .contact-link-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
  overflow-wrap: break-word;
}
.contact-section .contact-link-card .contact-link-arrow {
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

/* Modal amélioré */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal.active .modal-box {
  transform: scale(1) translateY(0);
}
.modal .modal-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}
.modal .modal-box .modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.modal .modal-box .modal-icon.success {
  background: rgba(2, 167, 125, 0.15);
}
.modal .modal-box .modal-icon.success svg {
  color: var(--color-primary);
}
.modal .modal-box .modal-icon.error {
  background: rgba(231, 76, 60, 0.15);
}
.modal .modal-box .modal-icon.error svg {
  color: #e74c3c;
}
.modal .modal-box .modal-title {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}
.modal .modal-box .modal-message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.modal .modal-box .modal-btn {
  min-width: 120px;
}

/* ---- Section Compétences - TERMINAL STYLE ---- */
.skills-section {
  width: 100%;
  padding: 80px 20px;
}

.skills-terminal {
  max-width: 1480px;
  margin: 50px auto 0;
  padding: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.terminal-title {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
  margin-right: 58px;
}

.terminal-body {
  padding: 50px 45px 0px 45px;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

@keyframes pulse-expert {
  0%, 100% {
    border-color: var(--border-color);
    box-shadow: 0 0 0 rgba(2, 167, 125, 0);
  }
  50% {
    border-color: #02a77d;
    box-shadow: 0 0 20px rgba(2, 167, 125, 0.25), inset 0 0 10px rgba(2, 167, 125, 0.05);
  }
}
@keyframes pulse-advanced {
  0%, 100% {
    border-color: var(--border-color);
    box-shadow: 0 0 0 rgba(2, 167, 125, 0);
  }
  50% {
    border-color: #02a77d;
    box-shadow: 0 0 20px rgba(2, 167, 125, 0.25), inset 0 0 10px rgba(2, 167, 125, 0.05);
  }
}
@keyframes pulse-intermediate {
  0%, 100% {
    border-color: var(--border-color);
    box-shadow: 0 0 0 rgba(2, 167, 125, 0);
  }
  50% {
    border-color: #02a77d;
    box-shadow: 0 0 20px rgba(2, 167, 125, 0.25), inset 0 0 10px rgba(2, 167, 125, 0.05);
  }
}
@keyframes pulse-learning {
  0%, 100% {
    border-color: var(--border-color);
    box-shadow: 0 0 0 rgba(2, 167, 125, 0);
  }
  50% {
    border-color: #02a77d;
    box-shadow: 0 0 20px rgba(2, 167, 125, 0.25), inset 0 0 10px rgba(2, 167, 125, 0.05);
  }
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  text-decoration: none;
  cursor: default;
}
.skill-tag img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.skill-tag span {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s ease;
}
.skill-tag[data-level=expert] {
  animation: pulse-expert 6s ease-in-out infinite;
}
.skill-tag[data-level=expert] span {
  color: var(--color-primary);
}
.skill-tag[data-level=expert]:hover {
  transform: translateY(-4px) scale(1.02);
}
.skill-tag[data-level=expert]:hover img {
  transform: rotate(-10deg) scale(1.1);
}
.skill-tag[data-level=advanced] {
  animation: pulse-advanced 6s ease-in-out infinite;
  animation-delay: 1s;
}
.skill-tag[data-level=advanced] span {
  color: var(--color-primary);
}
.skill-tag[data-level=advanced]:hover {
  transform: translateY(-4px) scale(1.02);
}
.skill-tag[data-level=advanced]:hover img {
  transform: rotate(-10deg) scale(1.1);
}
.skill-tag[data-level=intermediate] {
  animation: pulse-intermediate 6s ease-in-out infinite;
  animation-delay: 2s;
}
.skill-tag[data-level=intermediate] span {
  color: var(--color-primary);
}
.skill-tag[data-level=intermediate]:hover {
  transform: translateY(-4px) scale(1.02);
}
.skill-tag[data-level=intermediate]:hover img {
  transform: rotate(-10deg) scale(1.1);
}
.skill-tag[data-level=learning] {
  animation: pulse-learning 6s ease-in-out infinite;
  animation-delay: 3s;
}
.skill-tag[data-level=learning] span {
  color: var(--color-primary);
}
.skill-tag[data-level=learning]:hover {
  transform: translateY(-4px) scale(1.02);
}
.skill-tag[data-level=learning]:hover img {
  transform: rotate(-10deg) scale(1.1);
}

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
}

.prompt-symbol {
  color: var(--color-primary);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 1.3rem;
  font-weight: 600;
}

.prompt-text {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
}

.prompt-cursor {
  width: 10px;
  height: 24px;
  background: var(--color-primary);
  animation: blink 1s step-end infinite;
}

.terminal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: 0px 0px 12px 12px;
  color: var(--text-main);
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 167, 125, 0.3);
}
.terminal-cta svg {
  transition: transform 0.3s ease;
}
.terminal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 167, 125, 0.4);
  color: var(--color-primary);
}
.terminal-cta:hover svg {
  transform: translateX(5px);
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.skill-tag {
  position: relative;
  cursor: pointer;
}
.skill-tag.skill-tag--no-projects {
  cursor: default;
  opacity: 0.7;
}
.skill-tag.skill-tag--no-projects .skill-dropdown {
  display: none;
}
.skill-tag.active {
  z-index: 100;
}
.skill-tag.active .skill-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.skill-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 260px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  overflow: hidden;
}
.skill-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.skill-dropdown-header {
  padding: 14px 20px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  background: var(--glass-bg);
}

.skill-dropdown-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.skill-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.skill-dropdown-item a svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  opacity: 0.7;
  transition: all 0.2s ease;
}
.skill-dropdown-item a:hover {
  background: var(--glass-bg);
  color: var(--color-primary);
}
.skill-dropdown-item a:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes project-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 167, 125, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(2, 167, 125, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 167, 125, 0);
  }
}
.project-block.project-highlight {
  animation: project-pulse 1s ease-out;
  border-color: var(--color-primary) !important;
}
.project-block.project-highlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--color-primary);
  border-radius: inherit;
  animation: project-pulse 1s ease-out;
}

@media (max-width: 768px) {
  .skills-terminal {
    margin: 40px 15px 0;
    border-radius: 12px;
  }
  .terminal-header {
    padding: 14px 20px;
  }
  .terminal-body {
    padding: 30px 25px 0px 25px;
  }
  .skills-cloud {
    gap: 14px;
  }
  .skill-tag {
    padding: 14px 22px;
    gap: 12px;
  }
  .skill-tag img {
    width: 28px;
    height: 28px;
  }
  .skill-tag span {
    font-size: 0.95rem;
  }
  .terminal-title {
    display: none;
  }
  .prompt-text {
    font-size: 0.9rem;
  }
  .prompt-symbol {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .terminal-body {
    padding: 25px 18px 0px 18px;
  }
  .skills-cloud {
    gap: 10px;
  }
  .skill-tag {
    padding: 12px 18px;
    gap: 10px;
  }
  .skill-tag img {
    width: 24px;
    height: 24px;
  }
  .skill-tag span {
    font-size: 0.85rem;
  }
  .prompt-text {
    font-size: 0.8rem;
  }
  .skill-dropdown {
    min-width: 160px;
  }
  .skill-dropdown::before {
    width: 10px;
    height: 10px;
  }
  .skill-dropdown-header {
    padding: 10px 14px;
    font-size: 0.7rem;
  }
  .skill-dropdown-item a {
    padding: 8px 14px;
    font-size: 0.85rem;
    gap: 8px;
  }
  .skill-dropdown-item a svg {
    width: 12px;
    height: 12px;
  }
}
/* ---- Section Compétences - ORBIT DESIGN ---- */
.skills-section {
  width: 100%;
  padding: 80px 0;
  position: relative;
  overflow: visible;
}

/* ===== VERSION DESKTOP : ORBIT ===== */
.skills-orbit {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 700px;
  margin: 60px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cercles d'orbite décoratifs */
}
.skills-orbit::before, .skills-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border-color);
  opacity: 0.3;
}
.skills-orbit::before {
  width: 90%;
  height: 90%;
}
.skills-orbit::after {
  width: 60%;
  height: 60%;
}

/* Centre de l'orbite */
.skills-center {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 60px rgba(var(--color-primary-rgb), 0.3), 0 0 100px rgba(var(--color-primary-rgb), 0.1);
  animation: pulse 3s ease-in-out infinite;
}
.skills-center .skills-center-text {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(var(--color-primary-rgb), 0.3), 0 0 100px rgba(var(--color-primary-rgb), 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(var(--color-primary-rgb), 0.4), 0 0 120px rgba(var(--color-primary-rgb), 0.2);
  }
}
/* Items en orbite */
.skill-item {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  /* Positionnement en orbite via CSS custom properties */
  --radius: 280px;
  left: calc(50% + cos(var(--angle)) * var(--radius) - 50px);
  top: calc(50% + sin(var(--angle)) * var(--radius) - 50px);
}
.skill-item .skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-item .skill-icon img, .skill-item .skill-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.skill-item .skill-icon svg {
  fill: var(--color-primary);
}
.skill-item .skill-name {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.skill-item .skill-tag {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-primary);
  background: var(--glass-bg);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.skill-item {
  /* Ligne de connexion vers le centre */
}
.skill-item::before {
  content: "";
  position: absolute;
  width: var(--radius);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary) 50%, transparent);
  opacity: 0;
  transform-origin: right center;
  transform: rotate(calc(var(--angle) + 180deg));
  right: 50px;
  transition: opacity 0.3s ease;
}
.skill-item:hover {
  transform: scale(1.15);
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(var(--color-primary-rgb), 0.2), 0 0 20px rgba(var(--color-primary-rgb), 0.1);
  z-index: 20;
}
.skill-item:hover .skill-icon img,
.skill-item:hover .skill-icon svg {
  transform: scale(1.1);
}
.skill-item:hover .skill-tag {
  opacity: 1;
  bottom: -30px;
}
.skill-item:hover::before {
  opacity: 0.3;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* ===== VERSION MOBILE : LISTE ===== */
.skills-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 40px auto;
  padding: 0 20px;
}

.skill-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.skill-list-item:hover {
  transform: translateX(8px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.15);
}
.skill-list-item .skill-list-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}
.skill-list-item .skill-list-icon img, .skill-list-item .skill-list-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.skill-list-item .skill-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skill-list-item .skill-list-info .skill-list-name {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
}
.skill-list-item .skill-list-info .skill-list-cat {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 900px) {
  .skills-orbit {
    max-width: 550px;
    height: 550px;
  }
  .skills-orbit .skill-item {
    --radius: 210px;
    width: 85px;
    height: 85px;
    left: calc(50% + cos(var(--angle)) * var(--radius) - 42.5px);
    top: calc(50% + sin(var(--angle)) * var(--radius) - 42.5px);
  }
  .skills-orbit .skill-item .skill-icon {
    width: 32px;
    height: 32px;
  }
  .skills-orbit .skill-item .skill-name {
    font-size: 10px;
  }
  .skills-center {
    width: 100px;
    height: 100px;
  }
  .skills-center .skills-center-text {
    font-size: 14px;
  }
}
@media screen and (max-width: 680px) {
  .skills-orbit {
    display: none;
  }
  .skills-list {
    display: flex;
  }
}
/* ---- CTA vers les projets ---- */
.skills-cta {
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
  text-align: center;
  padding: 40px 30px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(10px);
}
.skills-cta p {
  font-size: 18px;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
.skills-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 167, 125, 0.3);
}
.skills-cta .cta-btn svg {
  transition: transform 0.3s ease;
}
.skills-cta .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(2, 167, 125, 0.4);
}
.skills-cta .cta-btn:hover svg {
  transform: translateX(6px);
}

/* ---- Timeline Section - VERTICAL ÉLÉGANTE ---- */
.timeline-section {
  width: 100%;
  padding: 80px 0;
  position: relative;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}
.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 40px);
}
.timeline-item:nth-child(even) .timeline-dot {
  left: 50%;
  transform: translateX(-50%);
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: calc(50% + 40px);
}
.timeline-item:nth-child(odd) .timeline-dot {
  left: 50%;
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  border: 3px solid var(--bg-main);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--color-primary-opacity);
  transition: all 0.3s ease;
}
.timeline-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
  opacity: 0.3;
}
.timeline-item:nth-child(odd) .timeline-dot::before {
  right: 100%;
  transform: translateY(-50%);
}
.timeline-item:nth-child(even) .timeline-dot::before {
  left: 100%;
  transform: translateY(-50%);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  max-width: 400px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 8px 8px 0 0;
  left: 0;
}
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-main);
  border-color: var(--color-primary);
}
.timeline-content h3 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.timeline-content p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}
.timeline-content .timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.timeline-content .timeline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-main);
}
.timeline-content .timeline-btn.primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(3, 196, 144, 0.25);
}
.timeline-content .timeline-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(3, 196, 144, 0.35);
}
.timeline-content .timeline-btn.ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}
.timeline-content .timeline-btn.ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.timeline-content .timeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-content .timeline-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.timeline-content .timeline-location svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.timeline-content .timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-opacity);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---- Mini-projets Timeline ---- */
.timeline-project {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  min-height: 60px;
}

.timeline-project-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border: 2px solid var(--bg-main);
  border-radius: 50%;
  z-index: 2;
}

.timeline-project-connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  border-top: 2px dashed var(--color-accent);
  opacity: 0.5;
}

.timeline-project-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--glass-bg);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 140px;
}
.timeline-project-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.timeline-project-card:hover .timeline-project-name {
  color: var(--color-accent);
}

.timeline-project-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-project-name {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.timeline-project-type {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Position gauche - carte à gauche de la timeline */
.timeline-project--left {
  justify-content: flex-start;
  padding-right: 50%;
}
.timeline-project--left .timeline-project-card {
  margin-left: auto;
  margin-right: 40px;
  text-align: right;
  align-items: flex-end;
}
.timeline-project--left .timeline-project-connector {
  left: auto;
  right: calc(50% + 4px);
  width: 32px;
}

/* Position droite - carte à droite de la timeline */
.timeline-project--right {
  justify-content: flex-end;
  padding-left: 50%;
}
.timeline-project--right .timeline-project-card {
  margin-right: auto;
  margin-left: 40px;
  text-align: left;
  align-items: flex-start;
}
.timeline-project--right .timeline-project-connector {
  right: auto;
  left: calc(50% + 4px);
  width: 32px;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    justify-content: flex-start;
  }
  .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
    max-width: calc(100% - 80px);
  }
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 20px;
    transform: translateX(0);
  }
  .timeline-item:nth-child(odd) .timeline-dot::before, .timeline-item:nth-child(even) .timeline-dot::before {
    right: auto;
    left: 100%;
    transform: translateY(-50%);
  }
  .timeline-content {
    padding: 20px;
  }
  /* Mini-projets responsive */
  .timeline-project-dot {
    left: 20px;
    transform: translateX(-50%);
  }
  .timeline-project-connector {
    left: 24px !important;
    right: auto !important;
    width: 30px !important;
  }
  .timeline-project--left,
  .timeline-project--right {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-project--left .timeline-project-card,
  .timeline-project--right .timeline-project-card {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
    align-items: flex-start;
  }
}
/* ---- PORTFOLIO - REDESIGN MODERNE ET ADAPTIVE ---- */
.portfolio-side {
  width: 100%;
  position: relative;
  padding: 60px 0;
}
.portfolio-side .portfolio-side-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  align-items: start;
}
.portfolio-side .portfolio-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.portfolio-side .portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 1;
}
.portfolio-side .portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-main);
}
.portfolio-side .portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}
.portfolio-side .portfolio-card:hover .portfolio-title {
  color: var(--color-primary);
}
.portfolio-side .portfolio-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.portfolio-side .portfolio-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.portfolio-side .portfolio-content {
  padding: 30px;
}
.portfolio-side .portfolio-title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}
.portfolio-side .portfolio-subtitle {
  font-size: 12px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 15px;
}
.portfolio-side .portfolio-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.portfolio-side .portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.portfolio-side .portfolio-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-light);
  color: var(--bg-main);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}
.portfolio-side .portfolio-button {
  width: 100%;
  justify-content: center;
}

/* ---- PROJECTS SECTION - DESIGN MODERNE ---- */
.projects-section {
  width: 100%;
  padding: 100px 0;
  min-height: 100vh;
}

.project-block {
  position: relative;
  margin-bottom: 150px;
  margin-top: 40px;
}
.project-block:last-child {
  margin-bottom: 0;
}

.project-number {
  position: relative;
  top: 0;
  left: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(80px, 15vw, 150px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  line-height: 1;
  user-select: none;
  z-index: 0;
  text-align: center;
  margin-bottom: -40px;
  opacity: 0;
  animation: numberReveal 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@media screen and (min-width: 1025px) {
  .project-number {
    text-align: left;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
  }
}

@keyframes numberReveal {
  0% {
    opacity: 0;
    -webkit-text-stroke-color: #5de4d9;
    transform: translateY(20px);
    filter: blur(8px) drop-shadow(0 0 20px #5de4d9);
  }
  40% {
    opacity: 0.6;
    -webkit-text-stroke-color: #5de4d9;
    filter: blur(0) drop-shadow(0 0 15px #5de4d9);
  }
  70% {
    opacity: 0.4;
    filter: drop-shadow(0 0 8px var(--color-primary));
  }
  100% {
    opacity: 0.35;
    -webkit-text-stroke-color: var(--color-primary);
    transform: translateY(0);
    filter: drop-shadow(0 0 3px var(--color-primary));
  }
}
.project-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  z-index: 1;
}
@media screen and (min-width: 1025px) {
  .project-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 50px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
  }
}

.project-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (min-width: 1025px) {
  .project-text {
    text-align: left;
    align-items: flex-start;
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    position: sticky;
    top: 120px;
    overflow: hidden;
  }
}
.project-text .project-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 0;
}
.project-text .project-type::before {
  display: none;
}
.project-text h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}
@media screen and (min-width: 1025px) {
  .project-text h2 {
    font-size: clamp(28px, 3vw, 38px);
    word-break: break-word;
  }
}
.project-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: justify;
  max-width: 600px;
}
@media screen and (min-width: 1025px) {
  .project-text p {
    max-width: 100%;
  }
}

.project-made-with {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: left !important;
}
@media screen and (min-width: 1025px) {
  .project-made-with {
    text-align: left;
  }
}
.project-made-with span {
  color: var(--text-muted);
}
.project-made-with a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.project-made-with a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.project-stack {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 32px;
  margin-top: 10px;
  gap: 12px;
}
.project-stack span {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  transition: all 0.3s ease;
}
.project-stack span:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  text-decoration: none;
  padding: 16px 0;
  position: relative;
  transition: all 0.3s ease;
}
.project-link::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.project-link:hover {
  color: var(--color-primary);
}
.project-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.project-link:hover svg {
  transform: translate(4px, -4px);
}
.project-link svg {
  transition: transform 0.3s ease;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.project-link--github svg {
  transform: none;
}
.project-link--github:hover svg {
  transform: scale(1.1);
}

.project-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  width: 100%;
  max-width: 1400px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}
@media screen and (min-width: 1025px) {
  .project-frame {
    flex: 1;
    max-width: none;
  }
}
.project-frame::before {
  content: "●  Démo en direct";
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}
.project-frame .frame-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-primary-dark), var(--color-primary));
  background-size: 300% 300%;
  animation: glowMove 4s ease infinite;
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.project-frame:hover .frame-glow {
  opacity: 1;
}
.project-frame .iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}
.project-frame .iframe-overlay .iframe-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
  text-align: center;
  padding: 24px;
}
.project-frame .iframe-overlay .iframe-overlay-content svg {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}
.project-frame .iframe-overlay .iframe-overlay-content span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}
.project-frame .iframe-overlay:hover {
  background: var(--glass-hover);
}
.project-frame .iframe-overlay:hover .iframe-overlay-content svg {
  transform: scale(1.15);
}
.project-frame iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  background: #fff;
  transition: transform 0.4s ease;
  pointer-events: none;
}
@media screen and (min-width: 1025px) {
  .project-frame iframe {
    height: auto;
    aspect-ratio: 16/10;
  }
}
.project-frame:hover iframe {
  transform: scale(0.995);
}
.project-frame.fullscreen-active {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90% !important;
  max-width: 1600px !important;
  height: 85vh !important;
  z-index: 10000 !important;
  border-radius: 16px !important;
  border: 1px solid var(--border-color) !important;
  margin: 0 !important;
  cursor: default;
  background: var(--bg-main);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}
.project-frame.fullscreen-active::before {
  content: "●  Appuyez sur Échap pour fermer";
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
}
.project-frame.fullscreen-active .frame-glow {
  display: none;
}
.project-frame.fullscreen-active .iframe-overlay {
  display: none;
}
.project-frame.fullscreen-active iframe {
  height: calc(100% - 45px) !important;
  pointer-events: auto;
  border-radius: 0 0 16px 16px;
}
.project-frame.fullscreen-active .fullscreen-close {
  display: flex;
}
.project-frame.fullscreen-active:hover iframe {
  transform: none;
}
.project-frame .fullscreen-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.project-frame .fullscreen-close:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: scale(1.1);
}
.project-frame .fullscreen-close svg {
  width: 24px;
  height: 24px;
}

.fullscreen-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}
.fullscreen-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ---- PROJECT GALLERY - Pour les projets sans iframe ---- */
.project-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(2px);
  width: 100%;
  border: 1px solid var(--border-color);
}
.project-gallery::before {
  content: "●  Captures d'écran";
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border-color);
}
.project-gallery .gallery-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}
.project-gallery .gallery-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-gallery .gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
}
.project-gallery .gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}
.project-gallery .gallery-slide:hover img {
  transform: scale(1.02);
}
.project-gallery .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.project-gallery .gallery-nav:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}
.project-gallery .gallery-nav.prev {
  left: 16px;
}
.project-gallery .gallery-nav.next {
  right: 16px;
}
.project-gallery .gallery-nav svg {
  width: 20px;
  height: 20px;
}
.project-gallery .gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.project-gallery .gallery-dots .gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}
.project-gallery .gallery-dots .gallery-dot:hover {
  background: var(--text-secondary);
}
.project-gallery .gallery-dots .gallery-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}
.project-gallery .gallery-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  z-index: 10;
}

/* Responsive Gallery */
@media screen and (max-width: 768px) {
  .project-gallery .gallery-container {
    height: 350px;
  }
  .project-gallery .gallery-nav {
    width: 36px;
    height: 36px;
  }
  .project-gallery .gallery-nav.prev {
    left: 8px;
  }
  .project-gallery .gallery-nav.next {
    right: 8px;
  }
}
@media screen and (max-width: 480px) {
  .project-gallery .gallery-container {
    height: 280px;
  }
  .project-gallery .gallery-slide {
    padding: 12px;
  }
}
/* Responsive Projects */
@media screen and (max-width: 968px) {
  .project-content {
    grid-template-columns: 1fr;
    gap: 40px;
    flex-direction: column;
  }
  .project-number {
    font-size: clamp(60px, 20vw, 100px);
    top: -30px;
  }
  .project-text {
    order: 1;
  }
  .project-text p {
    max-width: 100%;
  }
  .project-frame {
    order: 2;
    max-width: 100%;
  }
  .project-frame iframe {
    height: 500px;
  }
  .project-gallery {
    order: 2;
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .project-block {
    margin-bottom: 100px;
  }
  .project-stack {
    flex-wrap: wrap;
  }
  .project-frame::before {
    padding: 10px 16px;
    font-size: 11px;
  }
  .project-frame iframe {
    height: 580px;
  }
  .project-frame .iframe-overlay .iframe-overlay-content {
    gap: 12px;
    padding: 16px;
  }
  .project-frame .iframe-overlay .iframe-overlay-content svg {
    width: 36px;
    height: 36px;
  }
  .project-frame .iframe-overlay .iframe-overlay-content span {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .project-frame .fullscreen-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
  .project-frame .fullscreen-close svg {
    width: 20px;
    height: 20px;
  }
  .project-frame.fullscreen-active {
    width: 95% !important;
    height: 90vh !important;
    border-radius: 12px !important;
  }
  .project-frame.fullscreen-active::before {
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .project-frame.fullscreen-active iframe {
    height: calc(100% - 40px) !important;
    border-radius: 0 0 12px 12px;
  }
  .project-frame.fullscreen-active .fullscreen-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}
/* ---- Game Controls ---- */
.game-controls {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.game-controls .controls-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.game-controls .keys-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.game-controls .keys-group .keys-row {
  display: flex;
  gap: 4px;
}
.game-controls .controls-separator {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
}
.game-controls kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--border-color), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.15s ease;
}
.game-controls kbd:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--border-color), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.game-controls kbd.key-space {
  min-width: 70px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 480px) {
  .game-controls {
    gap: 8px;
  }
  .game-controls kbd {
    min-width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .game-controls kbd.key-space {
    min-width: 55px;
    font-size: 9px;
  }
}
/* ---- Page Mentions Légales ---- */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}
.legal-page footer {
  margin-top: auto;
}

.legal-section {
  flex: 1;
  padding: 40px 20px 80px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-main);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}
.legal-back svg {
  transition: transform 0.3s ease;
}
.legal-back:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.legal-back:hover svg {
  transform: translateX(-4px);
}

.legal-page h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-primary);
}

.legal-article {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.legal-article:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.legal-article h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-article h2::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 2px;
}
.legal-article p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.legal-article p:last-child {
  margin-bottom: 0;
}
.legal-article p strong {
  color: var(--text-main);
}
.legal-article ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}
.legal-article ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}
.legal-article ul li strong {
  color: var(--text-main);
}
.legal-article ul li a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.legal-article ul li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.legal-update {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 40px;
  }
  .legal-section {
    padding: 30px 15px 60px;
  }
  .legal-back {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  .legal-page h1 {
    margin-bottom: 35px;
  }
  .legal-article {
    padding: 20px;
    margin-bottom: 25px;
  }
  .legal-article h2 {
    font-size: 1.2rem;
  }
  .legal-article p, .legal-article ul li {
    font-size: 0.95rem;
  }
}
/* ---- RESPONSIVE DESIGN - MINIMALISTE & MODERNE ---- */
/* TABLET (1024px and below) */
@media screen and (max-width: 1024px) {
  .wrapper {
    margin: 0 30px;
  }
  .accueil-side {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .accueil-side .accueil-side-left,
  .accueil-side .accueil-side-right {
    width: 100%;
  }
  .contact-section .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-section .contact-separator {
    display: none;
  }
  .contact-section .contact-card--simple,
  .contact-section .contact-card--form {
    padding: 40px 30px;
  }
  .portfolio-side-flex {
    grid-template-columns: 1fr !important;
  }
}
/* SMALL TABLET (768px and below) */
@media screen and (max-width: 768px) {
  .wrapper {
    margin: 0 20px;
  }
  .accueil-side {
    min-height: 100vh;
    padding: 60px 0;
  }
  .accueil-side .accueil-side-left img {
    width: clamp(140px, 30vw, 220px);
  }
  .accueil-side .accueil-side-right span {
    font-size: clamp(24px, 5vw, 48px) !important;
  }
  .competence-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 16px !important;
  }
  .competence-box {
    max-width: 100% !important;
    height: 160px !important;
  }
  .contact-section .contact-form .submit-btn {
    width: 100%;
    justify-content: center;
  }
}
/* MOBILE (576px and below) */
@media screen and (max-width: 576px) {
  .wrapper {
    margin: 0 16px;
  }
  .title,
  .title-right,
  .title-left {
    font-size: clamp(24px, 6vw, 48px) !important;
  }
  .title p,
  .title-right p,
  .title-left p {
    gap: 8px;
  }
  .title p::before,
  .title p::after,
  .title-right p::before,
  .title-right p::after,
  .title-left p::before,
  .title-left p::after {
    content: none;
  }
  .accueil-side {
    gap: 20px;
  }
  .accueil-side .accueil-side-right span {
    text-align: center;
  }
  .competence-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    max-width: 100% !important;
  }
  .contact-section .contact-wrapper {
    padding: 0 16px;
  }
  .contact-section .contact-card--simple,
  .contact-section .contact-card--form {
    padding: 30px 20px;
  }
  .contact-section .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-section .contact-link-card {
    padding: 16px;
    gap: 12px;
  }
  .contact-section .contact-link-icon {
    width: 40px;
    height: 40px;
  }
  .competence-box {
    height: 140px !important;
    padding: 12px !important;
  }
  .competence-box .competence-title {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .competence-box .icon-container img {
    width: 45px;
    height: 45px;
  }
  .skills-cta {
    margin-top: 30px;
  }
  .portfolio-side-flex {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  footer p {
    font-size: 11px;
  }
}
/* SMALL MOBILE (360px and below) */
@media screen and (max-width: 360px) {
  .wrapper {
    margin: 0 12px;
  }
  .title,
  .title-right,
  .title-left {
    font-size: clamp(20px, 5vw, 32px) !important;
  }
  .competence-grid {
    grid-template-columns: 1fr !important;
  }
  .competence-box {
    height: 120px !important;
  }
  .contact-section .contact-link-text .contact-link-value {
    font-size: 13px;
  }
}/*# sourceMappingURL=style.css.map */