/* Common Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  font-family: "Jura", sans-serif;
}

/* Focus clavier visible, aux couleurs de la charte */
:focus-visible {
  outline: 0.3rem solid #e7be08;
  outline-offset: 0.3rem;
}

.skip-link {
  position: fixed;
  top: -10rem;
  left: 2rem;
  z-index: 1000;
  padding: 1rem 2rem;
  background: #9b0e0e;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Button */
.main-btn {
  position: absolute;
  bottom: 3rem;
  width: 13rem;
  height: 13rem;
  background-color: #9b0e0e;
  border-radius: 50%;
  border: 0.2rem dotted #fff;
  padding: 0.1rem;
  overflow: hidden;
}

.main-btn-content {
  width: 100%;
  height: 100%;
  border: 0.2rem dotted #e7be08;
  border-radius: 50%;
  transform: rotate(40deg);
  transition: transform 0.2s, border 0.2s;
}

.main-btn:hover .main-btn-content {
  transform: rotate(60deg);
  border: 0.2rem dotted #9b0e0e;
  transition: transform 0.2s 0.5s, border 0.2s;
}

.main-btn-line {
  position: absolute;
  top: 4rem;
  width: 3rem;
  height: 0.5rem;
  border: 0.1rem solid #fff;
}

.main-btn-line:nth-child(1) {
  transform: rotateZ(-45deg) translateX(-0.65rem);
  transform-origin: left center;
  border-right: none;
}

.main-btn-line:nth-child(2) {
  transform: rotateZ(45deg) translateX(0.65rem);
  transform-origin: right center;
  border-left: none;
}

.main-btn-line:nth-child(3) {
  transform: rotateZ(90deg) translateX(0.5rem);
  border-left: none;
}

.main-btn span {
  position: absolute;
  bottom: 3rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ripple {
  position: absolute;
  width: 0;
  height: 0;
  background-color: #e7be08;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleAnim 0.5s forwards;
}

@keyframes rippleAnim {
  0% {
    width: 0;
    height: 0;
  }
  100% {
    width: 210%;
    height: 210%;
  }
}
/* End of Main Button */

/* Section Heading */
.section-heading {
  font-size: 2rem;
  font-weight: 300;
  color: #fff;
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 10rem;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: min(2.5rem, 2.2vh);
  line-height: 1;
  white-space: nowrap;
}
/* End of Section Heading */
/* End of Common Styles */

/* Mouse Circle */
.mouse-circle,
.mouse-dot {
  border-radius: 50%;
  position: fixed;
  z-index: 300;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.mouse-circle {
  width: 6rem;
  height: 6rem;
  border: 0.1rem solid #c7a622;
  animation: mouseCircleAnim 10s infinite linear;
}

@keyframes mouseCircleAnim {
  0% {
    width: 6rem;
    height: 6rem;
  }
  25% {
    width: 8rem;
    height: 8rem;
  }
  35% {
    width: 4rem;
    height: 4rem;
  }
  70% {
    width: 8rem;
    height: 8rem;
  }
  100% {
    width: 6rem;
    height: 6rem;
  }
}

.mouse-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #9b0e0e;
  animation: mouseDotAnim 10s infinite linear;
}

@keyframes mouseDotAnim {
  0% {
    width: 0.5rem;
    height: 0.5rem;
  }
  55% {
    width: 1.5rem;
    height: 1.5rem;
  }
  100% {
    width: 0.5rem;
    height: 0.5rem;
  }
}
/* End of Mouse Circle */

/* Page BG */
.page-bg {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(images/bg.jpg) center no-repeat;
  background-size: cover;
}
/* End of Page BG */

/* Progress Bar */
.progress-bar {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  width: 6.4rem;
  height: 6.4rem;
  background-color: #fff;
  border-radius: 50%;
  z-index: 200;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.half-circle,
.half-circle-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  transform-origin: right center;
  pointer-events: none;
}

.half-circle:nth-child(1) {
  background-color: #b60000;
}

.half-circle:nth-child(2) {
  background-color: #b60000;
}

.half-circle-top {
  background-color: #fff;
}

.progress-bar-circle {
  width: 6.2rem;
  height: 6.2rem;
  background-color: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 3.2rem;
  z-index: 200;
  transition: transform 0.5s;
  pointer-events: none;
}
/* End of Progress Bar */

/* Navigation */
/* Menu Icon */
.menu-icon {
  position: fixed;
  top: 3.5rem;
  right: 0;
  width: 12rem;
  height: 7rem;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

.menu-icon-line {
  width: 4rem;
  height: 0.1rem;
  background-color: #fff;
  margin: 0.5rem 0;
  box-shadow: 0 0.3rem 0.5rem #000;
}

.show-menu-icon {
  opacity: 1;
  visibility: visible;
}
/* End of Menu Icon */

/* Navbar */
.navbar {
  position: fixed;
  top: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-right: 3rem;
  z-index: 100;
  transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
}

.navbar-link {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 2.5rem;
  text-shadow: 0 0.3rem 0.5rem #000;
}

.hide-navbar {
  opacity: 0;
  visibility: hidden;
  transform: translateX(10rem);
}
/* End of Navbar */
/* End of Navigation */

/* Section 1 */
.section-1 {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* Logo */
.logo {
  position: absolute;
  top: 2rem;
  left: 5rem;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
}
/* End of  Logo */

/* Animated Circles */
.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.circle {
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  opacity: 0.5;
  position: relative;
  top: 0;
  left: 0;
  transition: left 2s, top 2s;
}

.circle-1 {
  background: url(images/landing/java.svg) center no-repeat;
  background-size: cover;
  background-clip: content-box;
  border: 0.5rem dotted #a14b1a;
  margin-left: -10rem;
}

.circle-2 {
  background: url(images/landing/Spring_Boot.png) center no-repeat;
  background-size: cover;
  background-clip: content-box;
  border: 0.5rem dashed #ffbd07;
  margin-right: -10rem;
}

.circle-3 {
  background: url(images/landing/Angular.png) center no-repeat;
  background-size: cover;
  background-clip: content-box;
  border: 1rem double #9b0e0e;
  margin-left: -10rem;
}

.circle-4 {
  background: url(images/landing/flutter.png) center no-repeat;
  background-size: cover;
  background-clip: content-box;
  border: 0.7rem double #fff;
  margin-right: -10rem;
}

.main-circle {
  width: 55rem;
  height: 55rem;
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  transition: width 0.2s, height 0.2s;
}

.main-circle:hover {
  width: 75rem;
  height: 75rem;
}
/*luminosity, difference, lighten, exclusion */
.main-circle img {
  mix-blend-mode: difference ;
  position: relative;
  top: 0;
  left: 0;
  transition: left 2s, top 2s;
}
/* End of Animated Circles */

/* Featured Text */
.featured-text {
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  width: 0;
  word-wrap: break-word;
  line-height: min(7rem, 6vh);
  position: sticky;
  top: 0;
}

.featured-text-1 {
  margin: 0 auto 0 10rem;
  padding-top: 10rem !important;
}

.featured-text-2 {
  margin: 0 10rem 0 auto;
  padding-top: 10rem !important;
}
/* End of Featured Text */

/* End of Section 1 */

/* Section 2 */
.section-2 {
  position: relative;
  padding: 10rem 10rem 15rem 10rem;
}

/* About Me Text */
.about-me-text {
  width: min(90%, 110rem);
  margin: auto;
  padding: 4rem 5rem;
  border-left: 0.5rem solid #9b0e0e;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 2.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #f2f2f2;
  text-wrap: pretty;
}

.about-me-text span {
  font: inherit;
  color: inherit;
}

.about-word {
  display: inline-block;
  white-space: nowrap;
}

/* Vague au survol : --w (0 à 1) est posée par le JS selon la distance au curseur */
.about-char {
  position: relative;
  display: inline-block;
  transform: translateY(calc(var(--w, 0) * -1rem)) scale(calc(1 + var(--w, 0) * 0.18));
  transition: transform 0.35s ease-out, color 0.35s ease-out;
}

.about-me-text .about-char {
  color: color-mix(in srgb, #e7be08 calc(var(--w, 0) * 100%), #f2f2f2);
}

/* Apparition mot par mot quand la section entre à l'écran (--i = rang du mot, posé par le JS) */
.js .about-me-text .about-word {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}

.js .about-me-text.is-visible .about-word {
  opacity: 1;
  transform: none;
}

.about-me-text .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* End of About Me Text */

/* Section 2 Main Button */
.section-2 .main-btn {
  left: 50%;
  bottom: -5rem;
  transform: translateX(-50%);
}
/* End of Section 2 Main Button */
/* End of Section 2 */

/* Section 3 */
.section-3 {
  width: 100%;
  height: 100%;
  padding: 10rem 0;
  margin-top: 10rem;
  position: relative;
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Chiffres clés (section À propos) */
.stats {
  width: min(90%, 110rem);
  margin: 4rem auto 0;
  padding-left: 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

.stat-number {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(4.4rem, 6vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: #e7be08;
}

.stat-label {
  display: block;
  margin-top: 0.8rem;
  font-size: clamp(1.1rem, 1.2vw + 0.4rem, 1.5rem);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #e2e2e2;
}
/* End of Chiffres clés */

/* Sections 4 et 5 : compétences et projets */
.section-4,
.section-5 {
  position: relative;
  width: 100%;
  padding: 8rem 0;
}

.content-wrap {
  width: 100%;
  max-width: 140rem;
  margin: 0 auto;
  padding: 0 6rem 0 16rem;
}

.skills-grid,
.projects-grid {
  display: grid;
  gap: 2.4rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
}

.skill-card,
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(155, 14, 14, 0.35);
  border-radius: 1rem;
  padding: 2.4rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s;
}

/* Reflet doré qui suit le curseur (position --mx / --my posée par le JS) */
.skill-card,
.project-card {
  position: relative;
}

.skill-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    28rem circle at var(--mx, 50%) var(--my, 50%),
    rgba(231, 190, 8, 0.14),
    transparent 60%
  );
  transition: opacity 0.3s;
}

.skill-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.skill-card:hover,
.project-card:hover {
  border-color: #e7be08;
  background: rgba(231, 190, 8, 0.07);
  box-shadow: 0 1rem 2.5rem rgba(155, 14, 14, 0.3);
}

.skill-title {
  margin-bottom: 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #e7be08;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chips li {
  padding: 0.5rem 1.2rem;
  border: 0.1rem solid rgba(231, 190, 8, 0.35);
  border-radius: 10rem;
  background: rgba(155, 14, 14, 0.35);
  font-size: 1.4rem;
  color: #f2f2f2;
}

.chips-small li {
  padding: 0.3rem 1rem;
  background: transparent;
  border-color: rgba(231, 190, 8, 0.5);
  font-size: 1.2rem;
  color: #e7be08;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-type {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: #e7be08;
}

.project-name {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.project-client {
  margin: 0.6rem 0 1.4rem;
  font-size: 1.3rem;
  font-style: italic;
  color: #e2e2e2;
}

.project-desc {
  flex-grow: 1;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  line-height: 1.65;
  color: #dcdcdc;
}

/* Apparition au scroll (actif seulement si le JS tourne) */
.js .reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal.done {
  transition: transform 0.2s ease-out, border-color 0.3s, box-shadow 0.3s, background 0.3s;
  transition-delay: 0s !important;
}

/* Inclinaison 3D discrète (±5°) : --rx / --ry sont posées par le JS à la souris */
.js .skill-card.reveal.done:hover,
.js .project-card.reveal.done:hover {
  transform: perspective(90rem) translateY(-0.5rem) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
/* End of Sections 4 et 5 */

/* Section 6 - Contact */
.section-6 {
  position: relative;
  height: 100vh;
  flex-direction: column;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: -1rem 0 3rem;
  font-size: 1.6rem;
  color: #e2e2e2;
}

.contact-direct a {
  padding: 1rem 0;
  color: #e7be08;
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

/* Form */
.form-heading {
  font-family: "Poppins", sans-serif;
  font-size: 6rem;
  font-weight: 400;
  color: #e04848; /* rouge éclairci : #9b0e0e n'atteignait que 2,2:1 sur fond noir */
  letter-spacing: 0.3rem;
  margin-bottom: 3rem;
  transition: opacity 0.3s;
}

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

.contact-form-input {
  width: 60rem;
  padding: 0.5rem;
  margin: 1rem 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 0.1rem solid #9b0e0e;
  font-size: 1.7rem;
  font-weight: bold;
  color: #ececec;
  letter-spacing: 0.1rem;
  height: 5rem;
}

.contact-form-textarea {
  height: 20rem;
  resize: none;
}

.contact-form-input::placeholder {
  color: #b8b8b8;
  opacity: 1;
}

.contact-form-input:focus-visible {
  border-color: #e7be08;
}

.form-submit-btn {
  width: 20rem;
  height: 5rem;
  background-color: #9b0e0e;
  border: none;
  align-self: flex-start;
  font-size: 1.8rem;
  color: #fff;
}

/* Form Validation */
.message {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f55e5e;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 0 auto 1rem 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.error.message {
  visibility: visible;
  opacity: 1;
}
/* End of Form Validation */
/* End of Form */

/* Liens sociaux */
.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 6rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  border: 0.1rem solid rgba(231, 190, 8, 0.5);
  border-radius: 50%;
  color: #e7be08;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.social-link:hover {
  background: #9b0e0e;
  border-color: #9b0e0e;
  color: #fff;
  transform: translateY(-0.3rem);
}

.social-link svg {
  width: 2.4rem;
  height: 2.4rem;
}
/* End of Liens sociaux */
/* End of Section 6 */

/* ============================================
   SECTION PARCOURS - STYLES COMPLETS
   ============================================ */

/* Parcours Container */
.parcours-container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 6rem; /* ⬅️ ESPACE RÉSERVÉ */
  flex-direction: column;
}

.parcours-content {
  width: 100%;
}

.parcours-category {
  margin: 5rem 0;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUpParcours 0.8s ease-out forwards;
}

.parcours-category:nth-child(2) {
  animation-delay: 0.3s;
}

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

.category-title {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #e7be08;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.category-icon {
  display: inline-flex;
  width: 3.4rem;
  height: 3.4rem;
  margin-right: 2rem;
  color: #e7be08;
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

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

/* Trait en deux couches : un rail discret (::before) et un tracé qui se remplit au scroll (::after) */
.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 0.3rem;
  background: linear-gradient(to bottom, #9b0e0e, #e7be08, #9b0e0e);
  border-radius: 0.15rem;
}

.timeline::before {
  opacity: 0.22;
}

.timeline::after {
  transform: scaleY(var(--p, 1));
  transform-origin: top;
  box-shadow: 0 0 1rem rgba(231, 190, 8, 0.35);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(155, 14, 14, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  cursor: pointer;
}

.timeline-item::after {
  content: '▼';
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-size: 1.2rem;
  color: #e7be08;
  transition: transform 0.3s ease;
}

.timeline-item.expanded::after {
  transform: rotate(180deg);
}

.timeline-item:hover {
  transform: translateX(1rem);
  border-color: #e7be08;
  box-shadow: 0 1rem 2rem rgba(155, 14, 14, 0.3);
  background: rgba(231, 190, 8, 0.1);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5.5rem;
  top: 2.5rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #9b0e0e;
  border: 0.3rem solid #e7be08;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Les points s'allument quand le tracé les atteint (classe posée par le JS) */
.js .timeline-item:not(.reached)::before {
  background: #2a0808;
  border-color: rgba(231, 190, 8, 0.3);
}

.timeline-item.reached::before {
  box-shadow: 0 0 1.2rem rgba(231, 190, 8, 0.7);
}

.timeline-item:hover::before {
  background: #e7be08;
  border-color: #9b0e0e;
  transform: scale(1.3);
}

.timeline-date {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e7be08;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(155, 14, 14, 0.2);
  border-radius: 0.4rem;
  border: 0.1rem solid rgba(231, 190, 8, 0.3);
}

.timeline-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.timeline-company {
  font-size: 1.5rem;
  color: #e2e2e2;
  font-style: italic;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.timeline-description {
  font-size: 1.5rem;
  color: #dcdcdc;
  line-height: 1.7;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

/* Description ouverte (le JS ouvre le poste actuel par défaut, les autres au clic) */
.timeline-description.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 1.5rem;
}

.timeline-description ul {
  margin-top: 0.8rem;
  padding-left: 0;
  list-style: none;
}

.timeline-description li {
  margin: 0.6rem 0;
  position: relative;
  padding-left: 2rem;
}

.timeline-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #e7be08;
  font-weight: bold;
  font-size: 1.4rem;
}

/* Highlight Item (Poste Actuel - Synapsys) */
.highlight-item {
  background: linear-gradient(135deg, rgba(155, 14, 14, 0.15), rgba(231, 190, 8, 0.15)) !important;
  border: 0.2rem solid rgba(231, 190, 8, 0.5) !important;
  position: relative;
  overflow: hidden;
}

.highlight-item::after {
  content: attr(data-badge);
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #e7be08, #ffcc00);
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  box-shadow: 0 0.4rem 1rem rgba(231, 190, 8, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.highlight-item:hover {
  transform: translateX(1.5rem) scale(1.02);
  box-shadow: 0 1.5rem 3rem rgba(231, 190, 8, 0.4);
}

/* Language Selector */
.language-selector {
  margin-left: 2.5rem;
}

.language-selector select {
  background-color: rgba(155, 14, 14, 0.7);
  border: 0.1rem solid #9b0e0e;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.language-selector select:hover {
  background-color: #9b0e0e;
  transform: scale(1.05);
}

.language-selector select:focus-visible {
  outline: 0.3rem solid #e7be08;
  outline-offset: 0.3rem;
}

.language-selector select option {
  background-color: #000;
  color: #fff;
}

/* ============================================
   AJUSTEMENTS DE BASE (toutes largeurs)
   ============================================ */

/* Les points de la frise sont centrés sur le trait vertical */
.timeline-item::before {
  left: -2.45rem;
}

.timeline-item {
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.parcours-category + .parcours-category {
  margin-top: 6rem;
}

/* Très grands écrans : le contenu s'élargit pour rester proche des titres verticaux */
@media (min-width: 1700px) {
  .content-wrap {
    max-width: 160rem;
  }
}

/* Pied de page */
.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  padding: 2rem 8rem 4rem;
  font-size: 1.3rem;
  color: #b8b8b8;
  text-align: center;
}

/* Contact : la section grandit avec son contenu au lieu de déborder */
.section-6 {
  height: auto;
  min-height: 100vh;
  padding: 12rem 0 8rem;
}

.form-wrapper {
  width: min(60rem, calc(100% - 12rem));
}

.contact-form-input {
  width: 100%;
}

.form-heading {
  font-size: clamp(3.6rem, 6vw, 6rem);
}

.section-1 {
  height: 100vh;
  height: 100svh;
}

/* ============================================
   RESPONSIVE (desktop d'abord, du plus large au plus étroit)
   ============================================ */

@media (max-width: 1500px) {
  .circle {
    width: 15rem;
    height: 15rem;
  }

  .main-circle {
    width: 45rem;
    height: 45rem;
  }

  .main-circle:hover {
    width: 55rem;
    height: 55rem;
  }

  .main-circle img {
    width: 160%;
    height: 160%;
  }
}

@media (max-width: 1350px) {
  .circle {
    width: 12rem;
    height: 12rem;
  }

  .progress-bar {
    right: 1rem;
    bottom: 0;
  }
}

@media (max-width: 1150px) {
  .mouse-circle,
  .mouse-dot {
    display: none;
  }

  .navbar-link {
    margin: 0 1.4rem;
  }

  .logo {
    top: 7.5rem;
  }

  .main-circle {
    width: 40rem;
    height: 40rem;
  }

  .main-circle:hover {
    width: 45rem;
    height: 45rem;
  }

  .content-wrap {
    padding-left: 14rem;
  }
}

/* Trop étroit pour les 4 logos orbitaux autour de la photo (mesuré : sans chevauchement jusqu'à ~1000 px) */
@media (max-width: 1000px) {
  .circle {
    display: none;
  }
}

@media (max-width: 900px) {
  .navbar-link {
    margin: 0 1rem;
  }

  .featured-text-1 {
    margin: 0 auto 0 5rem;
  }

  .featured-text-2 {
    margin: 0 5rem 0 auto;
  }

  .section-heading {
    left: 5rem;
  }

  .section-2 {
    padding: 10rem 6rem 15rem 12rem;
  }

  .parcours-container {
    width: 92%;
    padding-left: 8rem;
  }

  .timeline {
    padding-left: 3rem;
  }

  .timeline::before,
  .timeline::after {
    left: 0.8rem;
  }

  .timeline-item::before {
    left: -2.65rem;
  }

  .content-wrap {
    padding: 0 3rem 0 12rem;
  }

  .stats {
    padding-left: 2rem;
  }

  .form-wrapper {
    margin-left: 8rem;
    width: min(60rem, calc(100% - 14rem));
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem 0;
    top: 1.2rem;
    padding: 0 1rem;
  }

  .navbar-link {
    padding: 1.3rem 0.5rem; /* zone tactile ~44 px */
    font-size: 1.3rem;
    margin: 0 0.4rem;
  }

  .language-selector {
    margin-left: 0.8rem;
  }

  .language-selector select {
    min-height: 4.4rem;
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
  }

  .logo {
    padding: 0.8rem;
    top: 10.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
  }

  .main-circle {
    width: min(38rem, 80vw);
    height: min(38rem, 80vw);
  }

  .main-circle:hover {
    width: min(38rem, 80vw);
    height: min(38rem, 80vw);
  }

  .featured-text {
    font-size: 1.6rem;
  }

  .featured-text-1 {
    margin: 0 auto 0 2rem;
  }

  .featured-text-2 {
    margin: 0 2rem 0 auto;
  }

  .section-heading {
    left: 1.2rem;
    font-size: 1.5rem;
  }

  .section-2 {
    padding: 8rem 2rem 15rem 5rem;
  }

  .about-me-text {
    width: 100%;
    padding: 2.4rem 2rem;
    border-left-width: 0.4rem;
  }

  .parcours-container {
    width: 100%;
    padding: 3rem 1.5rem 3rem 4.5rem;
  }

  .timeline {
    padding-left: 2.8rem;
  }

  .timeline-item {
    padding: 2rem 1.6rem;
  }

  .timeline-item::before {
    left: -2.45rem;
    width: 1rem;
    height: 1rem;
  }

  .timeline-item:hover,
  .highlight-item:hover {
    transform: none;
  }

  .timeline-title {
    font-size: 1.7rem;
    padding-right: 2.5rem;
  }

  .category-title {
    font-size: 2rem;
  }

  .highlight-item {
    padding-top: 5rem;
  }

  .content-wrap {
    padding: 0 1.5rem 0 5rem;
  }

  .section-4,
  .section-5 {
    padding: 5rem 0;
  }

  .skill-card,
  .project-card {
    padding: 2rem;
  }

  .stats {
    padding-left: 1rem;
  }

  .section-6 {
    padding: 14rem 1.5rem 8rem 4.5rem;
  }

  .form-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .social-links {
    margin-top: 4rem;
  }

  .main-btn {
    width: 11rem;
    height: 11rem;
  }

  .progress-bar {
    width: 6rem;
    height: 6rem;
  }

  .progress-bar-circle {
    width: 5.8rem;
    height: 5.8rem;
    font-size: 3rem;
  }
}

@media (max-width: 400px) {
  .navbar-link {
    font-size: 1.15rem;
    margin: 0 0.2rem;
  }

  .about-me-text {
    font-size: 2.3rem;
  }
}

/* End of Responsive */
