/* deploiement 123 test */

/* body { outline: 5px solid red; } */

:root {
  --primary-color: #291F09;
  --text-color-title: #ffffff;
  --text-color: #ffffff;
  --accent-color: #d69110;
  --background-color: #d69110;
  --sidebar-width: 300px;
  --sidebar-bg: rgba(0, 0, 0, 0.95);
  --bg-color: #291F09;
  --card-bg: #f9fcfb;
  --card-hover: rgba(255, 255, 255, 0.1);
  --hover-color: rgba(0, 184, 148, 0.2);
  --timeline-bg: rgba(255, 255, 255, 0.05);
  --project-card-bg: rgba(255, 255, 255, 0.05);
  --contact-bg: rgba(255, 255, 255, 0.05);
  --nav-bg: #291F09;
  --transition-duration: 3s;
}

/* Thème clair */
.theme-light {
  --bg-color: #f8f9fa;
  --text-color-title: #2c3e50;
  --text-color: #2c3e50;
  --accent-color: #2c3e50;

  /* même gris clair pour TOUTES les cards en thème light */
  --card-bg: rgba(44, 62, 80, 0.08);
  --card-hover: rgba(44, 62, 80, 0.12);
  --timeline-bg: rgba(44, 62, 80, 0.08);
  --project-card-bg: rgba(44, 62, 80, 0.08);
  --contact-bg: rgba(44, 62, 80, 0.08);
  --sidebar-bg: #ffffff;

  --nav-bg: #fff;
  --scrollbar-bg: #2c3e50;
  --scrollbar-thumb: #2c3e50;
  --scrollbar-track: #2c3e50;
}


/* Ajustements spécifiques pour le mode clair */
.theme-light .soft-skill .skill-description {
  color: rgba(44, 62, 80, 0.7);
}

.theme-light .timeline-content {
  background: rgba(44, 62, 80, 0.08);
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.theme-light .project-card {
  background: rgba(44, 62, 80, 0.08);
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.theme-light .project-tech span {
  background: rgba(44, 62, 80, 0.08);
  color: #2c3e50;
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.theme-light .project-tech span:hover {
  background: #2c3e50;
  color: #ffffff;
}

.theme-light .project-links a {
  background: rgba(44, 62, 80, 0.08);
  color: #2c3e50;
  border: 1px solid rgba(44, 62, 80, 0.1);
}

.theme-light .project-links a:hover {
  background: #2c3e50;
  color: #ffffff;
}

.theme-light .contact {
  background: rgba(44, 62, 80, 0.08);
  padding: 3.5rem;
}

.theme-light .contact-links a {
  color: #2c3e50;
}

.theme-light .contact-links a:hover {
  color: #2c3e50;
  opacity: 0.8;
}


.theme-light .skill-level {
  background: rgba(44, 62, 80, 0.1);
}

.theme-light .skill-level-bar {
  background: #2c3e50;
}

.theme-light .nav-links a {
  color: #2c3e50;
}

.theme-light .nav-links a:hover {
  color: #2c3e50;
  opacity: 0.8;
}

.theme-light .social-links a {
  color: #2c3e50;
}

.theme-light .social-links a:hover {
  color: #2c3e50;
  opacity: 0.8;
}

.theme-light .info-section i {
  color: #2c3e50;
}

.theme-light .timeline::before {
  background-color: #2c3e50;
}

.theme-light .timeline-item::before {
  background-color: #2c3e50;
}

.theme-light .timeline-date {
  background: #2c3e50;
  color: #ffffff;
}

.theme-light section h2::after {
  background: #2c3e50;
}

.theme-light .hero-content {
  text-shadow: 2px 2px 4px rgba(44, 62, 80, 0.2);
}

.theme-light .hero-content p {
  text-shadow: 1px 1px 2px rgba(44, 62, 80, 0.2);
}

/* Animation de transition entre les thèmes */
@keyframes themeGlitch {
  0% {
    filter: hue-rotate(0deg) brightness(1);
    transform: translate(0);
  }

  10% {
    filter: hue-rotate(10deg) brightness(1.1);
    transform: translate(-2px, 2px);
  }

  20% {
    filter: hue-rotate(-10deg) brightness(0.9);
    transform: translate(2px, -2px);
  }

  30% {
    filter: hue-rotate(5deg) brightness(1.05);
    transform: translate(-1px, -1px);
  }

  40% {
    filter: hue-rotate(-5deg) brightness(0.95);
    transform: translate(1px, 1px);
  }

  50% {
    filter: hue-rotate(0deg) brightness(1);
    transform: translate(0);
  }

  60% {
    filter: hue-rotate(10deg) brightness(1.1);
    transform: translate(-2px, 2px);
  }

  70% {
    filter: hue-rotate(-10deg) brightness(0.9);
    transform: translate(2px, -2px);
  }

  80% {
    filter: hue-rotate(5deg) brightness(1.05);
    transform: translate(-1px, -1px);
  }

  90% {
    filter: hue-rotate(-5deg) brightness(0.95);
    transform: translate(1px, 1px);
  }

  100% {
    filter: hue-rotate(0deg) brightness(1);
    transform: translate(0);
  }
}

/* Classe pour la transition */
.theme-transition {
  animation: themeGlitch var(--transition-duration) ease-in-out;
}

/* Transition progressive pour tous les éléments */
body,
.sidebar,
.nav,
.card,
.timeline-item,
.project-card,
.contact {
  transition: background-color var(--transition-duration) ease-in-out,
    color var(--transition-duration) ease-in-out,
    box-shadow var(--transition-duration) ease-in-out;
}

/* Effet de glitch pour le texte pendant la transition */
.theme-transition .glitch {
  animation: glitch 0.3s linear infinite;
}

.theme-transition .glitch::before,
.theme-transition .glitch::after {
  animation: noise-anim 0.3s infinite linear alternate-reverse;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; 
}

body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color); 
  line-height: 1.6;
  transition: background-color 1s ease, color 1s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--card-bg);
}

/* Styles de la scrollbar pour les navigateurs Webkit (Chrome, Safari, etc.) */
body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
  opacity: 0.8;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--nav-bg);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color-title);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Container et Sidebar */
.container {
  display: flex;
  margin-top: 70px;
  position: relative;
  width: 100%;
  overflow: visible;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 300px;
  background: var(--sidebar-bg);
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--card-bg);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-toggle {
  position: fixed;
  left: 20px;
  top: 15px;
  z-index: 1001;
  background: var(--accent-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle i {
  font-size: 1.2rem;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-card {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-card .title {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: var(--text-color-title);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.info-section {
  margin-bottom: 2rem;
}

.info-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.info-section ul {
  list-style: none;
}

.info-section li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-section i {
  color: var(--accent-color);
}

.interests li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Content */
.main-content {
  flex: 1;
  transition: margin-left 0.3s ease;
  min-height: 100vh;     /* juste une hauteur minimum */
  height: auto;          /* laisse la page grandir normalement */
  overflow: visible;     /* c’est le body qui scroll, pas la div */

}

.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
  opacity: 0.8;
}


/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

#animation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.8rem;
  opacity: 0.8;
  position: relative;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* .glitch {
  position: relative;
  animation: none;
}

.glitch.active {
  animation: glitch 0.15s linear;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  text-shadow: 4px 0 #ff0000;
  top: 0;
  color: var(--text-color);
  background: var(--primary-color);
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.glitch.active::before {
  left: 8px;
  text-shadow: -4px 0 #00ff00;
  animation: noise-anim 0.15s infinite linear alternate-reverse;
  opacity: 1;
}

.glitch.active::after {
  left: -8px;
  text-shadow: 4px 0 #0000ff;
  animation: noise-anim-2 0.15s infinite linear alternate-reverse;
  opacity: 1;
} */


/* Glitch Orange */
.glitch-letter {
  display: inline-block;
  transition: color 0.08s linear;
  color: var(--text-color-title)
}

/* Quand la lettre est "glitchée" : simplement orange */
.glitch-letter.glitch-on {
  color: var(--accent-color); /* ton orange #d69110 */
}

/* @keyframes glitch {
  0% {
    transform: translate(0);
    text-shadow: 4px 0 #ff0000, -4px 0 #00ff00, 4px 0 #0000ff;
  }

  25% {
    transform: translate(-6px, 6px);
    text-shadow: -4px 0 #ff0000, 4px 0 #00ff00, -4px 0 #0000ff;
  }

  50% {
    transform: translate(6px, -6px);
    text-shadow: 4px 0 #00ff00, -4px 0 #0000ff, 4px 0 #ff0000;
  }

  75% {
    transform: translate(-6px, -6px);
    text-shadow: -4px 0 #0000ff, 4px 0 #ff0000, -4px 0 #00ff00;
  }

  100% {
    transform: translate(0);
    text-shadow: 4px 0 #ff0000, -4px 0 #00ff00, 4px 0 #0000ff;
  }
}

@keyframes noise-anim {
  0% {
    clip: rect(44px, 450px, 56px, 0);
  }

  5% {
    clip: rect(12px, 450px, 59px, 0);
  }

  10% {
    clip: rect(48px, 450px, 29px, 0);
  }

  15% {
    clip: rect(42px, 450px, 73px, 0);
  }

  20% {
    clip: rect(63px, 450px, 27px, 0);
  }

  25% {
    clip: rect(34px, 450px, 55px, 0);
  }

  30% {
    clip: rect(86px, 450px, 73px, 0);
  }

  35% {
    clip: rect(20px, 450px, 20px, 0);
  }

  40% {
    clip: rect(26px, 450px, 60px, 0);
  }

  45% {
    clip: rect(25px, 450px, 66px, 0);
  }

  50% {
    clip: rect(57px, 450px, 98px, 0);
  }

  55% {
    clip: rect(5px, 450px, 46px, 0);
  }

  60% {
    clip: rect(82px, 450px, 31px, 0);
  }

  65% {
    clip: rect(54px, 450px, 27px, 0);
  }

  70% {
    clip: rect(28px, 450px, 99px, 0);
  }

  75% {
    clip: rect(45px, 450px, 69px, 0);
  }

  80% {
    clip: rect(23px, 450px, 85px, 0);
  }

  85% {
    clip: rect(54px, 450px, 84px, 0);
  }

  90% {
    clip: rect(45px, 450px, 47px, 0);
  }

  95% {
    clip: rect(37px, 450px, 20px, 0);
  }

  100% {
    clip: rect(4px, 450px, 91px, 0);
  }
}

@keyframes noise-anim-2 {
  0% {
    clip: rect(65px, 450px, 119px, 0);
  }

  5% {
    clip: rect(96px, 450px, 76px, 0);
  }

  10% {
    clip: rect(92px, 450px, 101px, 0);
  }

  15% {
    clip: rect(85px, 450px, 66px, 0);
  }

  20% {
    clip: rect(40px, 450px, 43px, 0);
  }

  25% {
    clip: rect(25px, 450px, 5px, 0);
  }

  30% {
    clip: rect(50px, 450px, 66px, 0);
  }

  35% {
    clip: rect(89px, 450px, 98px, 0);
  }

  40% {
    clip: rect(44px, 450px, 15px, 0);
  }

  45% {
    clip: rect(63px, 450px, 94px, 0);
  }

  50% {
    clip: rect(82px, 450px, 64px, 0);
  }

  55% {
    clip: rect(94px, 450px, 86px, 0);
  }

  60% {
    clip: rect(59px, 450px, 103px, 0);
  }

  65% {
    clip: rect(92px, 450px, 102px, 0);
  }

  70% {
    clip: rect(48px, 450px, 44px, 0);
  }

  75% {
    clip: rect(50px, 450px, 47px, 0);
  }

  80% {
    clip: rect(96px, 450px, 82px, 0);
  }

  85% {
    clip: rect(59px, 450px, 84px, 0);
  }

  90% {
    clip: rect(82px, 450px, 30px, 0);
  }

  95% {
    clip: rect(32px, 450px, 27px, 0);
  }

  100% {
    clip: rect(73px, 450px, 68px, 0);
  }
} */

section h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  color: var(--accent-color); 
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* Timeline améliorée */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  background: var(--timeline-bg);
  transition: background-color 1s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.timeline-date {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-color);
  color: var(--text-color);
  border-radius: 15px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 3.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.20); /* ⬅ blanc lumineux */
  background-color: rgba(255,255,255,0.08);      /* ⬅ léger éclaircissement */
}

/* Projects */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 75px;
}

.project-card {
  background: var(--project-card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease, background-color 1s ease;
  position: relative;
  padding: 20px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.15); /* lumineux / neutre */
}

.project-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
  position: relative;
  border-bottom: 1px solid var(--accent-color);
}

.project-content p {
  padding: 0 60px;
}

.lycee-style {
  font-style: italic;
  font-size: 0.8rem;
}

.project-content h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  margin: 3.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.project-tech span {
  background: #ffffff;
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-tech span:hover {
  background: var(--accent-color);
  color: #ffffff;;
  transform: translateY(-2px);
}

.footer {
  margin-bottom: 20px;
}

/* .project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 184, 148, 0.1);
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
} */

.contact {
  background-color: var(--contact-bg);
  text-align: center;
  margin-bottom: 30px;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  transition: background-color 1s ease;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-links a {
  color: var(--text-color-title);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--accent-color);
}

.about-text {
  margin: 0 250px;
  text-align: center;
  line-height: 1.6;
}

/* Ajout des animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation des sections */
section {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Amélioration des compétences */
.skills {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  justify-items: center;
}

.skill {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease, background-color 1s ease, box-shadow 1s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 250px;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--hover-color);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;

}


.skill:hover .skill-icon {
  transform: scale(1.1);
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.skill-level {
  width: 100%;
  height: 6px;
  background: rgba(58, 47, 1, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.skill-level-bar {
  height: 100%;
  background: var(--accent-color);
  border-radius: 3px;
  transition: width 1s ease;
}

/* Soft Skills */
.soft-skills-title {
  margin-top: 5rem;
  text-align: center;
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 4rem;
}

.hard-skills-title {
  margin-top: 5rem;
  text-align: center;
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 4rem;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.soft-skill {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease, background-color 1s ease, box-shadow 1s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.soft-skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--hover-color);
}

.soft-skill .skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;

}
.soft-skill .skill-level {
  margin-top: auto; /* pousse la barre en bas de la card */
}
.soft-skill:hover .skill-icon {
  transform: scale(1.1);
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color:  var(--accent-color);
}

.soft-skill .skill-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}



/* Styles spécifiques pour la sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
  opacity: 0.8;
}

/* Effet de freeze avec lignes verticales */
@keyframes freezeGlitch {
  0% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }

  10% {
    transform: translateX(-5px);
    filter: hue-rotate(10deg);
  }

  20% {
    transform: translateX(5px);
    filter: hue-rotate(-10deg);
  }

  30% {
    transform: translateX(-3px);
    filter: hue-rotate(5deg);
  }

  40% {
    transform: translateX(3px);
    filter: hue-rotate(-5deg);
  }

  50% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }
}

.freeze-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.freeze-effect.active {
  opacity: 1;
}

.freeze-line {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: freezeGlitch 0.1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.freeze-line.visible {
  opacity: 1;
}

.freeze-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.2),
    rgba(0, 0, 0, 0.2),
    rgba(255, 255, 255, 0.2)
  );
  animation: freezeGlitch 0.05s linear infinite reverse;
}

/* Effet de télévision et bug */
@keyframes tvOff {
  0% {
    transform: scaleY(1);
    filter: brightness(1) contrast(1);
  }

  50% {
    transform: scaleY(0.1);
    filter: brightness(0) contrast(0);
  }

  100% {
    transform: scaleY(1);
    filter: brightness(1) contrast(1);
  }
}

@keyframes tvScanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

.tv-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  animation: tvOff 2s ease-in-out;
}

.tv-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, transparent 50%);
  background-size: 100% 4px;
  animation: tvScanline 0.2s linear infinite;
  pointer-events: none;
}

.tv-effect.active {
  opacity: 1;
}

/* Bouton de changement de thème */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle i {
  font-size: 1.2rem;
}

/* Section CV */
.cv-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-align: center;
}

.cv-preview {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cv-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cv-preview:hover img {
  transform: scale(1.05);
}

.cv-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.8rem
}

.cv-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cv-download i {
  font-size: 1.2rem;
}

.techno {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.space {
  display: grid;
  gap: 20px;
}

.space h3 {
  text-align: center;
  font-size: 25px;
  margin-bottom: 20px;
}

.entour {
  border-bottom: 1px solid black;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.techno span {
  gap: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.gallery {
  display: flex;
  gap: 30px;
  height: 270px;
  justify-content: center;
}

/* gestion des image pour le site reservation */

.site-image {
  width: 150px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: border 0.2s;
}

.site-image:hover {
  border: 2px solid #333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 80vw;
  max-height: 80vh;
  display: block;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
}

.close,
.prev,
.next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  top: 20px;
  z-index: 1001;
}

.close {
  right: 40px;
}
.prev {
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}
.next {
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.projects-grid h3 {
  text-align: center;
  color: var(--accent-color);
  font-size: 1.2rem;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--accent-color); /* 🔥 orange doux */
}

.projects-grid p {
  margin-top: 30px;
}

.sidebar-menu {
  display: none;
}

/* ecrase le reste */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* empêche l'espace vide à droite */
}


/* Les gros conteneurs ne doivent jamais dépasser 100% */
.container,
.main-content,
.hero,
.about,
.experience,
.formation,
.projects,
.contact {
  width: 100%;
  max-width: 100%;
}

/* Sécurité : toutes les images / canvas restent dans la largeur */
img,
canvas {
  max-width: 100%;
}

@media (max-width: 768px) {
  .skills {
    padding: 1.5rem 1rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards par ligne */
    gap: 1rem;
  }

  .skill {
    max-width: 100%;
  }

  /* Pour harmoniser aussi les Soft Skills si besoin */
  .soft-skills-grid {
    grid-template-columns: 1fr;  /* une card par ligne */
    gap: 1rem;
  }
}

.experience, .projects, .formation {
  padding-top: 70px
}