* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --h2-size: 2.4rem;
  --h3-size: 1.3rem;
  --body-size: 1rem;
  --primary-navy: #0b1d31;
}

/* Scroll Reveal - Vibrant & Alive */
.reveal {
  opacity: 0;
  transform: translateY(15px) scale(0.99);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
}

/* Staggered children reveal - Bouncy */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease-out, transform 0.25s ease-out;
}

.reveal.active .reveal-stagger>*,
.reveal.active.reveal-stagger>* {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* More granular delays for a true "flow" */
.reveal-stagger>*:nth-child(1) {
  transition-delay: 0.02s;
}

.reveal-stagger>*:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal-stagger>*:nth-child(3) {
  transition-delay: 0.10s;
}

.reveal-stagger>*:nth-child(4) {
  transition-delay: 0.14s;
}

.reveal-stagger>*:nth-child(5) {
  transition-delay: 0.18s;
}

.reveal-stagger>*:nth-child(6) {
  transition-delay: 0.22s;
}

/* Pulse animation for important items */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.project-card:hover,
.education-card:hover,
.about-card:hover {
  box-shadow: 0 20px 40px rgba(63, 81, 181, 0.2);
  border-color: #3f51b5;
  transform: translateY(-8px) scale(1.02) !important;
}

/* Visibility Utilities */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

body {
  scroll-behavior: smooth;
  padding-top: 80px;
  background: white;
  color: #000;
}

/* NAVBAR */
.navbar {
  position: fixed;
  /* fixe la navbar */
  top: 0;
  /* la place en haut */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: #000;
  padding: 15px 8%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* LOGO */
.logo {
  font-weight: bold;
  font-size: 24px;
}

/* LIENS NAVBAR */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: 0.3s;
}

/* SOULIGNEMENT GRADIENT */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, #3f51b5, #9c27b0);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HOVER = DEGRADÉ */
.nav-links a:hover {
  background: linear-gradient(to right, #3f51b5, #9c27b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* ACTIF = DEGRADÉ */
.nav-links a.active {
  font-weight: bold;
  background: linear-gradient(to right, #3f51b5, #9c27b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MENU ICON (hamburger) */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  z-index: 2000;
}

.menu-icon span {
  height: 3px;
  width: 25px;
  background: black;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animation hamburger en croix */
.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 10%;
    background: white;
    flex-direction: column;
    gap: 20px;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-icon {
    display: flex;
  }
}

/* SECTION INTRO */
.intro {
  padding: 30px 8% 20px;
  /* réduit le padding top */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* alignement en haut pour éviter trop d'espace */
  background: #ffffff;
  color: #000;
  font-family: 'Poppins', sans-serif;
  flex-wrap: wrap;
  gap: 20px;
  /* réduit l'espacement entre texte et image */
}

/* Marges internes */
.intro h1,
.intro h3,
.intro p {
  margin: 5px 0;
  /* réduit les marges des textes */
}

.intro br {
  display: none;
}

/* CONTENEUR PRINCIPAL */
.main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 15px;
  flex-wrap: wrap;
  /* responsive */
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
    /* empilement sur mobile */
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .intro {
    padding: 20px 6% 15px;
    gap: 15px;
    align-items: flex-start;
  }
}

/* DETAIL TEXTE */
.detail {
  flex: 1;
  max-width: 500px;
}

.detail h1 {
  font-size: 2.2rem;
  color: #000;
}

.detail h1 span {
  color: #3f51b5;
  /* texte bleu */
}

.detail h3 {
  font-size: 1.1rem;
  color: #000;
}

/* SECTION IMAGE */
.img-sec {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.img-sec img {
  width: 100%;
  max-width: 300px;
  height: auto;
  position: relative;
  z-index: 2;
  border-radius: 15px;
}

/* FOND OVALE */
.fake-button-shape {
  position: absolute;
  width: 400px;
  height: 180px;
  background: linear-gradient(to right, #3f51b5, #9c27b0);
  border-radius: 100px;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

/* LOGOS TECH CAROUSEL */
.tech-stack-carousel {
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-logos {
  display: inline-flex;
  gap: 30px;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.tech-logos img {
  width: 40px;
  height: auto;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: grayscale(20%);
}

.tech-logos img:hover {
  transform: scale(1.5) rotate(12deg);
  filter: grayscale(0%);
  cursor: pointer;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
    /* Half because we duplicated the items */
  }
}

.typing {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #000;
  font-family: monospace;
  font-size: 20px;
  animation: typing 5s steps(40, end) infinite alternate,
    blink 0.6s step-end infinite;
}

.main,
.img-sec,
.detail {
  transition: all 0.3s ease-in-out;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 42ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* ✅ RESPONSIVE */
@media (max-width: 992px) {
  .main {
    flex-direction: column;
    /* ✅ image en haut */
    align-items: center;
    text-align: center;
  }

  .img-sec {
    order: -1;
    margin-bottom: 20px;
  }

  .img-sec img {
    max-width: 250px;
  }

  .fake-button-shape {
    width: 280px;
    height: 120px;
  }

  .detail {
    text-align: center;
    max-width: 90%;
  }

  .detail h1 {
    font-size: 1.8rem;
  }

  .detail h3 {
    font-size: 1rem;
  }

  .tech-logos {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== SECTION À PROPOS ===== */
.about {
  background: #ffffff;
  color: #000;
  padding: 80px 10%;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.about h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CARD ===== */
.about-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  border: 2px solid #FF1493;
  padding: 60px 40px 40px 140px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

/* ===== IMAGE ===== */
.about-img {
  position: absolute;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== TEXTE ===== */
.about-text p {
  font-size: var(--body-size);
  line-height: 1.9;
  color: #333;
  margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-card {
    padding: 100px 25px 40px;
  }

  .about-img {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
  }

  .about-text {
    text-align: center;
  }
}

/* SECTION COMPÉTENCES */
.skills-section {
  background: #ffffff;
  color: #000;
  padding: 80px 10%;
  text-align: center;
}

.skills-section h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Container de la pile */
.skill-stack {
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

/* Les cartes en arrière-plan */
.skill-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  /* Coins très affûtés comme sur l'image */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
  pointer-events: none;
}

/* État initial : 2 cartes visibles (principale + une décalée en bas à droite comme l'image 1) */
.skill-card-bg:nth-of-type(1) {
  transform: translate(6px, 6px);
  opacity: 0.8;
  z-index: -1;
}

.skill-card-bg:nth-of-type(2) {
  transform: translate(0, 0);
  opacity: 0;
  z-index: -2;
}

/* Styles de la carte principale */
.skill-item {
  background: #fff;
  padding: 22px;
  border-radius: 2px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 2;
  height: 100%;
}

/* Animations au survol : on éparpille en diagonale selon l'image 2 (Haut-D / Bas-G) */
.skill-stack:hover .skill-item {
  transform: none;
  /* Reste statique au milieu comme sur l'image */
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.12);
  border-color: #3f51b5;
  border-width: 1px;
}

.skill-stack:hover .skill-card-bg:nth-of-type(1) {
  transform: translate(8px, -8px);
  /* Part vers le Haut-Droite au survol */
  opacity: 0.6;
}

.skill-stack:hover .skill-card-bg:nth-of-type(2) {
  transform: translate(-8px, 8px);
  /* Part vers le Bas-Gauche au survol */
  opacity: 0.6;
}

/* Response for CV buttons on mobile */
@media (max-width: 480px) {
  .cv-buttons {
    flex-wrap: wrap;
  }
}

/* Effet au clic (Interactivité) */
.skill-stack:active .skill-item {
  transform: translateY(-5px) scale(0.95);
  background: #f8f9ff;
  border-color: #9c27b0;
  /* Change de couleur au clic pour le feedback */
}

.skill-item h3 {
  color: var(--primary-navy);
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 2px solid #3f51b5;
  display: inline-block;
  padding-bottom: 4px;
}

.skill-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  margin: 8px 0;
}

.skill-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .skill-item {
    height: auto;
    padding: 20px;
  }
}

/* SECTION PROJETS */
.projects-section {
  background-color: #ffffff;
  color: #000;
  padding: 80px 10%;
  text-align: center;
}

.projects-section h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* BOUTONS DE FILTRE */
.filter-buttons {
  margin-bottom: 50px;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #000;
  color: #000;
  padding: 10px 22px;
  margin: 5px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: #000;
  color: #fff;
}

/* GRILLE DES PROJETS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #000;
  /* Bordure épaisse noire comme ailleurs */
  overflow: hidden;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* HEADER DU PROJET (IMAGE) */
.card-header {
  width: 100%;
  height: 220px;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #000;
}

.card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-header img {
  transform: scale(1.05);
}

/* CORPS DE LA CARTE */
.card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.project-description {
  font-size: var(--body-size);
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* TAGS TECHNOLOGIQUES */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tech-tags span {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tags span:hover {
  background: #000;
  color: #fff;
}

/* ACTIONS */
.project-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-action .icon {
  width: 18px;
  height: 18px;
}

.btn-action:hover {
  background: #000;
  color: #fff;
}

.btn-action img.icon {
  filter: none;
  /* Pas d'invert par défaut sur fond blanc */
}

.btn-action:hover img.icon {
  filter: invert(1);
}

/* ===== SECTION EXPÉRIENCE (NOUVELLE TIMELINE AFFINÉE) ===== */
.experience-section {
  background: #ffffff;
  /* Fond très légèrement teinté comme l'image */
  color: #000;
  padding: 100px 10%;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.experience-section .section-title {
  font-size: var(--h2-size);
  font-weight: 800;
  margin-bottom: 80px;
  color: var(--primary-navy);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Ligne pointillée centrale (Tracé fin DASHED) */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 0;
  border-left: 2px dashed #ddd;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.timeline-left,
.timeline-right {
  width: 44%;
}

.timeline-left {
  text-align: right;
  padding-right: 35px;
}

.timeline-right {
  text-align: left;
  padding-left: 35px;
}

.timeline-center {
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 5;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid var(--dot-color, #ccc);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fdfdfd;
}

.timeline-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--dot-color, #ccc);
  border-radius: 50%;
}

/* Typographie */
.company-name {
  font-size: var(--h3-size);
  /* Standardisé */
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.experience-date {
  font-size: 0.95rem;
  color: #888;
  font-weight: 500;
}

.job-title {
  font-size: 1.3rem;
  /* Standardisé */
  font-weight: 700;
  color: #0b1d31;
  margin-bottom: 8px;
}

.job-description {
  font-size: 1rem;
  /* Standardisé */
  color: #555;
  /* Gris plus doux pour la lisibilité */
  line-height: 1.7;
  max-width: 100%;
}

/* ===== RESPONSIVE AFFINÉ ===== */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    display: flex;
    /* Retour au flexbox sur mobile */
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
    margin-bottom: 40px;
  }

  .timeline-left,
  .timeline-right {
    width: 100%;
    text-align: left;
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .timeline-center {
    position: absolute;
    left: 20px;
    top: 5px;
    width: auto;
    transform: translateX(-50%);
    justify-content: flex-start;
    padding-top: 0;
  }

  .timeline-left {
    margin-bottom: 10px;
  }
}

/* ===== SECTION FORMATION (MODERNE) ===== */
.education-section {
  background: #ffffff;
  color: #000;
  padding: 100px 10%;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.education-section .section-title {
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 50px;
  text-transform: uppercase;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Reduced to 300px to fit better */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
  /* Center cards if they don't fill the row */
}

.education-card {
  background: #fff;
  border: 1px solid #0b0b0b;
  border-radius: 4px;
  padding: 35px;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: #3f51b5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.edu-icon {
  width: 55px;
  height: 55px;
  background: #f8faff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.education-card:hover .edu-icon {
  background: #3f51b5;
}

.education-card:hover .edu-icon svg {
  stroke: #fff;
}

.edu-content {
  flex-grow: 1;
}

.degree-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b1d31;
  margin-bottom: 8px;
}

.institution-name {
  font-size: var(--body-size);
  color: #555;
  margin-bottom: 12px;
  font-weight: 500;
}

.edu-date {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  background: #f0f2f5;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
}

/* RESPONSIVE FORMATION */
@media (max-width: 600px) {
  .education-card {
    flex-direction: column;
    padding: 25px;
    gap: 15px;
    text-align: center;
    /* Center text on mobile */
    align-items: center;
    /* Center icon on mobile */
  }

  .edu-content {
    text-align: center;
  }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: #ffffff;
  color: #000;
  padding: 60px 8%;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.contact-section h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grille 3 colonnes */
.contact-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* Chaque colonne */
.contact-column {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Carte de contact */
.contact-card {
  background: #fff;
  padding: 18px 22px;
  border-radius: 4px;
  border: 1px solid rgba(11, 29, 49, 0.1);
  /* Subtle Navy border */
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: #3f51b5;
  box-shadow: 0 10px 25px rgba(63, 81, 181, 0.1);
}

.contact-card .icon {
  width: 26px;
  height: 26px;
  color: #3f51b5;
  flex-shrink: 0;
  opacity: 0.85;
}

.contact-card h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

.contact-card div {
  text-align: left;
}

.contact-card p,
.contact-card a {
  font-size: 14px;
  color: #000;
  text-decoration: none;
}

/* Colonne centrale : CV */
.center {
  align-items: center;
  justify-content: center;
}

.cv-download {
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(11, 29, 49, 0.1);
  padding: 25px;
  width: 100%;
  max-width: 400px;
  /* More balanced size */
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.cv-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #3f51b5;
  border-radius: 0 0 4px 4px;
}

.cv-download h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--primary-navy);
  font-weight: 700;
}

.cv-buttons {
  display: flex;
  flex-direction: column;
  /* Stacked as in the image */
  gap: 15px;
  align-items: center;
  padding: 10px 0;
  /* Removed overflow-x related properties */
}

.cv-buttons::-webkit-scrollbar {
  display: none;
  /* Cache la scrollbar sur Chrome/Safari */
}

.cv-btn {
  background: #3f51b5;
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  max-width: 250px;
  /* Consistent width for both */
  text-align: center;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.2);
}

.cv-btn:hover {
  background: var(--primary-navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(11, 29, 49, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-column {
    align-items: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 6%;
  }

  /* Titres de section uniformisés sur mobile */
  .about h2,
  .skills-section h2,
  .projects-section h2,
  .experience-section .section-title,
  .education-section .section-title,
  .contact-section h2,
  .experience h2 {
    font-size: 1.6rem;
  }
}

/* ===== SECTION EXPÉRIENCE (Originale) ===== */
.experience {
  background: #ffffff;
  color: #000;
  padding: 50px 8%;
  font-family: 'Poppins', sans-serif;
}

.experience h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0b1d31;
  text-align: center;
  text-transform: uppercase;
}

.exp-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
  padding-left: 70px;
}

.exp-row {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  position: relative;
  flex-wrap: wrap;
}

.exp-date {
  position: relative;
  min-width: 130px;
  max-width: 250px;
  text-align: center;
  z-index: 2;
  flex-shrink: 0;
}

.exp-date span {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 2px solid #111;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.exp-row::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 90px;
  width: 2px;
  height: calc(100% - 70px);
  background: rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.exp-row:last-child::before {
  display: none;
}

.exp-content {
  flex: 1;
  background: transparent;
  min-width: 250px;
  word-wrap: break-word;
}

.exp-content h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.3rem;
  color: #0b1d31;
  font-weight: 700;
  margin-bottom: 5px;
}

.exp-content .company {
  color: #000;
  opacity: 0.9;
  font-weight: 600;
  font-size: 14px;
}

.exp-content p {
  color: #111;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}

.exp-row:hover .exp-date span {
  border-color: #3f51b5;
  color: #3f51b5;
  box-shadow: 0 0 8px rgba(63, 81, 181, 0.3);
}

/* RESPONSIVE EXPÉRIENCE ORIGINALE */
@media (max-width: 992px) {
  .exp-timeline {
    padding-left: 50px;
  }
}

@media (max-width: 768px) {
  .exp-timeline {
    padding-left: 0;
    gap: 25px;
  }

  .exp-row {
    flex-direction: column;
    padding-left: 0;
  }

  .exp-row::before {
    display: none;
  }
}