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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --title: #07248b;
  --card: #f8f9fc;
  --border: #e5e7eb;
  --accent: #07248b;
}

/* =============================== */
/* H2 UNIFIÉS POUR TOUT LE SITE (MODE CLAIR) */
/* =============================== */
h2,
.titre-section,
.competences h2,
.formation h2,
.section-header h2,
.experience-info h2,
.projet-texte h2,
.formation-card h2,
.skill-card h2,
.text-card h2,
.content-block h2,
.theme-card h2,
.text-block h2 {
    color: var(--title);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

/* =============================== */
/* HEADER */
/* =============================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: fixed;
  width: 100%;
  height: 100px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  z-index: 100;
}

header h1 {
  color: #07248b;
  font-weight: 700;
  font-size: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: #07248b;
  font-weight: 600;
  transition: 0.2s;
}

nav a:hover,
nav a.active {
  color: #002b33;
}

/* =============================== */
/* MENU BURGER */
/* =============================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #002b33;
  transition: transform 0.3s;
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

/* Header responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 25px;
    flex-wrap: wrap;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
  }

  nav ul.show {
    display: flex;
  }

  nav li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}





@media (max-width: 992px) {
  .btn_retour {
    width: 130px;
    height: 45px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .btn_retour {
    width: 120px;
    height: 42px;
    font-size: 14px;
    padding: 8px 0;
    border-radius: 6px;
  }
}

/* =============================== */
/* SECTION PROFIL */
/* =============================== */
#profil {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 80px;
  background: linear-gradient(120deg, #f7f7fb, #dddff8, #e7efff);
  z-index: 0;
}

#profil::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.95;
  z-index: -2;
  left: -60px;
  top: -60px;
  background: #ffffff;
}

#profil::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(228, 228, 244, 0), #ffffff);
  z-index: -1;
  pointer-events: none;
}

/* =============================== */
/* HERO */
/* =============================== */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 80px 80px 0;
}

.hero-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: #07248b;
  margin-bottom: 10px;
}

.hero-text h3 {
  font-size: 24px;
  font-weight: 400;
  color: #07248b;
  margin-top: -10px;
  margin-bottom: 30px;
}

.hero-text p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* Bouton principal */
.btn {
  display: inline-block;
  margin-top: 40px;
  background: linear-gradient(90deg, #07248b, #2b2e32);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn:hover {
  background: linear-gradient(90deg, #4570f3, #131418);
}

/* IMAGE hero */
.jav-image {
  position: relative;
  width: 250px;
  height: 350px;
  margin-top: -80px;
  margin-left: 100px;
}

.jav-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 35%;
  z-index: 2;
}

/* Boutons CV */
.cv-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.cv-buttons .btn-cv {
  display: inline-block;
  text-decoration: none;
  color: #07248b;
  font-weight: 600;
  border: 2px solid #07248b;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cv-buttons .btn-cv:hover {
  background-color: #07248b;
  color: white;
  transform: translateY(-3px);
}

/* Liens icônes */
.liens_icones {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.liens_icones a {
  font-size: 24px;
  color: #0d1b2a;
  transition: 0.2s;
}

.liens_icones a:hover {
  color: #07248b;
}

/* Hero / profil responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 30px 0;
  }

  .hero-text h2 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .jav-image {
    width: 300px;
    height: 300px;
    margin-top: -60px;
    margin-left: 20px;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 80px 20px;
  }

  .jav-image {
    width: 250px;
    height: 250px;
    margin-top: 30px;
    margin-left: 0;
  }

  .hero-text h2 {
    font-size: 42px;
    margin-bottom: 30px;
  }

  .hero-text p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 150px;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .jav-image {
    width: 300px;
    height: 300px;
    margin-top: -30px;
    margin-left: 0;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .jav-image {
    width: 250px;
    height: 250px;
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .hero-text h2 {
    font-size: 30px;
    line-height: 1.3;
  }

  .hero-text h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 13px;
  }

  .jav-image {
    width: 230px;
    height: 230px;
  }
}

/* =============================== */
/* SECTION FORMATION */
/* =============================== */
.formation {
  padding: 100px 10%;
  background: white;
}

/* CONTAINER CENTRÉ */
.formation-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 30px;

  justify-content: center;      /* centre les cartes */
  max-width: 1200px;            /* limite largeur */
  margin: 50px auto 0 auto;     /* centre le bloc */
}

/* CARDS */
.formation-card {
  background: #f8f9fc;
  border-radius: 15px;
  padding: 30px;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.formation-card h3 {
  color: #07248b;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.formation-card p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
}

.formation-card ul {
  list-style: none;
  padding-left: 0;
}

.formation-card ul li {
  color: #444;
  margin-bottom: 8px;
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}

.formation-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #07248b;
  font-weight: bold;
}

/* Carte mise en avant */
.formation-card.highlight {
  border: 2px solid #07248b;
  background: #eef2ff;
}

/* Orientation BTS */
.bts-orientation {
  display: flex;
  align-items: center;
  margin-top: 80px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #07248b;
  gap: 12px;
  flex-wrap: wrap;
}

.bts-orientation .arrow {
  font-size: 1.8rem;
  animation: arrowMove 1.5s infinite ease-in-out;
}

/* Animation flèche */
@keyframes arrowMove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}


#parcours {
  padding: 100px 8%;
  background: #f9f9ff;
  position: relative;
}

/* TIMELINE container */
.timeline-container {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
}

/* Ligne centrale */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #07248b;
  z-index: 1;
}

/* ITEM */
.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 60px;
  padding: 25px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
}

/* Alternance gauche/droite */
.timeline-item.gauche {
  left: 0;
}

.timeline-item.droite {
  left: 95%;
}

/* ICONES */
.timeline-icon,
.timeline-icon-2 {
  width: 55px;
  height: 55px;
  background: #07248b;
  color: #ffffff;
  font-size: 1.5rem;
  text-align: center;
  line-height: 55px;
  border-radius: 50%;
  position: absolute;
  top: 25px;
  z-index: 2;
  border: 4px solid #ffffff;
}

/* icon à droite de la ligne */
.timeline-icon {
  left: 50%;
  transform: translateX(50%);
}

/* icon à gauche de la ligne */
.timeline-icon-2 {
  left: 50%;
  transform: translateX(-150%);
}



/* TEXTES */
.timeline-content h3 {
  color: #07248b;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
/* Ligne centrale */
.timeline-container::before {
  /* ... */
  z-index: -1;  /* ← changer 1 en -1 */
}


.timeline-year {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

.timeline-desc {
  display: none;
  margin-top: 10px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.toggle-desc {
  margin-top: 12px;
  padding: 6px 14px;
  background: #07248b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.realisations-section {
  padding: 60px 8% 100px;
  background: #f7f8fc;
}

/* FILTRES */
.projet-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.projet-filter-btn {
  padding: 10px 24px;
  border: 2px solid #07248b;
  background: transparent;
  color: #07248b;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.projet-filter-btn:hover,
.projet-filter-btn.active {
  background: #07248b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(7, 36, 139, 0.2);
}

/* GRILLE */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARTE */
.projet-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 36, 139, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

.projet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(7, 36, 139, 0.15);
}

.projet-card.hidden {
  display: none;
}

/* IMAGE */
.projet-card-image {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #eef2ff;
}

.projet-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projet-card:hover .projet-card-image img {
  transform: scale(1.05);
}

/* BADGE */
.projet-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.projet-card-badge.stage {
  background: #07248b;
  color: #fff;
}

.projet-card-badge.ecole {
  background: #0b9e6e;
  color: #fff;
}

.projet-card-badge.perso {
  background: #e08a00;
  color: #fff;
}

/* BODY */
.projet-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projet-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 8px;
}

.projet-tech {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 10px;
}

.projet-card-desc {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
  flex: 1;
}

/* LIENS */
.projet-card-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.projet-card-links .btn {
  width: auto;
  height: auto;
  padding: 9px 20px;
  font-size: 0.85rem;
  margin-top: 0;
  border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .projets-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .projet-filter-buttons {
    gap: 8px;
  }
  .projet-filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .projets-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .projet-card-image {
    height: 180px;
  }
}

/* DARK MODE */
body.dark-mode .realisations-section {
  background: #0b0f1a;
}

body.dark-mode .projet-card {
  background: #121630;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

body.dark-mode .projet-card-title {
  color: #ffffff;
}

body.dark-mode .projet-card-desc {
  color: #cccccc;
}

body.dark-mode .projet-tech {
  color: #aaaaaa;
}

body.dark-mode .projet-card-image {
  background: #1a1f3a;
}

body.dark-mode .projet-filter-btn {
  border-color: #72aaff;
  color: #72aaff;
}

body.dark-mode .projet-filter-btn:hover,
body.dark-mode .projet-filter-btn.active {
  background: #72aaff;
  color: #0b0f1a;
}



/* =============================== */
/* SECTION COMPÉTENCES RÉAJUSTÉE */
/* =============================== */
#competences {
  padding: 110px 12%;  /* augmenté de 8% à 12% pour plus d'espace latéral */
  background: #ffffff;
  min-height: 100vh;
}

#competences .titre-section {
  text-align: center;
  color: #07248b;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 60px;
}

/* FILTRES */
#competences .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

#competences .filter-btn {
  padding: 10px 24px;
  border: 2px solid #07248b;
  background: transparent;
  color: #07248b;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

#competences .filter-btn:hover,
#competences .filter-btn.active {
  background: #07248b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(7,36,139,0.2);
}

/* GRILLE */


#competences .competences-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
  gap: 35px;

  justify-content: center;   /* centre les cards */
  max-width: 1100px;         /* limite la largeur */
  margin: 0 auto;            /* centre toute la grille */
}
@media (max-width: 992px) {
  #competences .competences-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 230px));
    justify-content: center;
    margin-left: 25px;
    margin-right: 25px;
  }
}

#competences .skills-title {
  grid-column: 1 / -1;
  margin: 70px 0 30px;
  color: #07248b;
  font-size: 1.8rem;
  font-weight: 700;
  border-left: 6px solid #07248b;
  padding-left: 20px;
}

/* CARTES TECH */
#competences .skill-card {
  background: #f8f9fc;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(7, 36, 139, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#competences .skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(7, 36, 139, 0.15);
}

#competences .skill-card img {
  width: 55%;
  max-width: 95px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

#competences .skill-card h4 {
  color: #07248b;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

/* Barre progression */
#competences .progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 50px;
  overflow: hidden;
}

#competences .progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #07248b, #0b3ad0);
  border-radius: 50px;
  transition: width 0.6s ease;
}

/* CARTES TEXTE */
#competences .text-card {
  padding: 22px;
  background: #eef2ff;
  border-left: 5px solid #07248b;
  border-radius: 16px;
  font-weight: 600;
  color: #07248b;
  text-align: center;
  box-shadow: 0 12px 30px rgba(7, 36, 139, 0.08);
  transition: transform 0.3s ease;
}

#competences .text-card:hover {
  transform: translateY(-4px);
}

/* Filtrage safe */
#competences .hide {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  display: none;
  transform: scale(0.95);
  transition: all 0.3s ease;
}



/* =============================== */
/* RESPONSIVE COMPÉTENCES */
/* =============================== */
@media (max-width: 992px) {
  #competences {
    padding: 90px 8%;  /* espace réduit pour tablette */
  }
}




/* SECTION EXPERIENCE */
.experience-section {
  padding: 100px 8%;
  background: #f9f9ff;
}

.titre-section {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  font-weight: 700;
  color: #0d1b2a;
}

.experience-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* CARD */
.experience-card {
  background: white;
  border-radius: 22px;
  padding: 35px;
  margin-bottom: 50px;
  box-shadow: 0 20px 50px rgba(7, 36, 139, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(7, 36, 139, 0.12);
}

/* HEADER */
.experience-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}

.experience-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #07248b, #0b3ad0);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: white;
  flex-shrink: 0;
}

.experience-info h3 {
  color: #07248b;
  margin: 0 0 6px 0;
  font-size: 1.4rem;
}

.experience-date {
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
}

/* DESCRIPTION */
.experience-card p {
  color: #333;
  margin-bottom: 30px;
  line-height: 1.7;
  font-size: 1rem;
}

/* TASKS GRID */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: #f8f9fc;
  border-radius: 12px;
  border-left: 4px solid #07248b;
  transition: background 0.3s ease;
}

.task-item:hover {
  background: #eef2ff;
}

.task-icon {
  font-size: 1.1rem;
  width: 30px;
  height: 30px;
  background: #07248b;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.task-item span {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive expérience */
@media (max-width: 400px) {
  .experience-section {
    padding: 60px 4%;
  }

  .experience-card {
    padding: 20px;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .experience-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .experience-info h3 {
    font-size: 1.05rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

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

  .experience-card {
    padding: 25px;
  }

  .experience-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .experience-info h3 {
    font-size: 1.2rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .experience-section {
    padding: 80px 7%;
  }

  .tasks-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (min-width: 1600px) {
  .experience-section {
    padding: 140px 14%;
  }

  .experience-card {
    padding: 45px;
  }

  .experience-info h3 {
    font-size: 1.6rem;
  }

  .experience-card p {
    font-size: 1.1rem;
  }

  .task-item span {
    font-size: 1rem;
  }
}

.experience-icon i,
.task-icon i {
  color: #ffffff;
}


/* SECTION PARCOURS */
#parcours {
  padding: 100px 8%;
  background: #f9f9ff;
  position: relative;
}

#parcours .titre-section {
  text-align: center;
  color: #07248b;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 70px;
}

.timeline-item.droite {
  left: 55%;
}

/* Icône côté droit de la ligne (pour items gauche) */
.timeline-icon {
  left: 100%;
}

/* Icône côté gauche de la ligne (pour items droite) */
.timeline-icon-2 {
  transform: translateX(-600%);
}


/* Responsive timeline */
/* Tablette */
@media (max-width: 1024px) {
  .timeline-item {
    width: 50%;
  }

  .timeline-item.droite {
    left: 20%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #parcours {
    padding: 70px 6%;
  }
   .timeline-item {
    width: 50%;
  }

  #parcours .titre-section {
    font-size: 1.7rem;
    margin-bottom: 45px;
  }

  .timeline-container::before {
    left: 25px;
    transform: none;
  }

  .timeline-icon,
  .timeline-icon-2 {
    left: 25px;
    right: auto;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 1.2rem;
  }
}

/* Très petit mobile */
@media (max-width: 480px) {
  #parcours {
    padding: 50px 4%;
  }

  .timeline-item {
    padding: 18px;
    margin-bottom: 40px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-year {
    font-size: 0.8rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
  }
}

/* Grand écran */
@media (min-width: 1600px) {
  #parcours {
    padding: 140px 14%;
  }

  #parcours .titre-section {
    font-size: 2.6rem;
  }

  .timeline-item {
    padding: 30px;
  }
}/* ===================== */
/* SECTION GENERALE       */
/* ===================== */
.veille-section {
    padding: 60px 20px;
    background-color: #f4f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: #07248b;
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 20px;
    color: #000000;
    margin-bottom: 15px;
}
.source-info {
    margin-top: 12px;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: #6c50ce;
    border-left: 3px solid #2a5cff;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    width: fit-content;
    box-shadow: 0 20px 50px rgba(7, 36, 159, 0.08);
}

.problematique {
    font-size: 16px;
    background-color: #eef2ff;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
}
/* ============================= */
/* CARTES DES THEMES */
.theme-card {
    background-color: #ffffff;
    padding: 35px;
    margin-bottom: 50px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(7, 36, 139, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(7, 36, 139, 0.12);
}

.theme-card h3 {
    color: #07248b;
    margin-bottom: 20px;
    border-left: 4px solid #000000;
    padding-left: 10px;
}

/* BLOCS CONTENU */
.content-block {
    margin-bottom: 20px;
}

.content-block h4 {
    color: #07248b;
    margin-bottom: 12px;
}

/* ============================= */
/* NOUVELLES DIV TEXT-BLOCK */
.text-block-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
    justify-items: center; /* centre chaque bloc horizontalement */
}

.block-icon {
    width: 100%;
    max-width: 300px; /* limite pour ne pas déborder sur petit écran */
    height: 150px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 12px;
}

/* BLOC DE TEXTE */
.text-block {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(7, 36, 139, 0.08);
    line-height: 1.7;
    font-size: 1rem;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* centre contenu et images */
    text-align: center;
}

.text-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(7, 36, 139, 0.12);
}

/* ============================= */
/* SOURCE INFO */
.source-info {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #666;
}

/* ============================= */
/* RESPONSIVE */
@media (max-width: 1024px) {
    .text-block-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .text-block-container {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }

    .block-icon {
        height: 180px; /* un peu plus grand pour mobile si nécessaire */
    }

    .text-block {
        text-align: left;
        align-items: flex-start;
    }
}
/* ===================== */
/* RESPONSIVE             */
/* ===================== */

/* Tablettes */
@media (max-width: 1024px) {
    .veille-section {
        padding: 50px 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .theme-card {
        padding: 25px;
    }

    .text-block-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablettes */
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .veille-section {
        padding: 40px 10px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .problematique {
        font-size: 14px;
        padding: 12px;
    }

    .theme-card {
        padding: 20px;
        margin-bottom: 30px;
    }

    .theme-card h3 {
        font-size: 18px;
        padding-left: 8px;
    }

    .content-block h4 {
        font-size: 16px;
    }

    .text-block-container {
        grid-template-columns: 1fr; /* 1 colonne sur mobiles */
        gap: 15px;
    }

    .text-block {
        font-size: 14px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .veille-section {
        padding: 30px 10px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .theme-card {
        padding: 15px;
    }

    .theme-card h3 {
        font-size: 16px;
    }

    .content-block h4 {
        font-size: 14px;
    }

    .text-block {
        font-size: 13px;
    }
}

/* SECTION CONTACT */
.contact {
  background-color: #e6f0ff;
  padding: 80px 10%;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e5475;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact .intro {
  font-style: italic;
  color: #444;
  margin-bottom: 40px;
}

/* INFOS */
.contact-infos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.info-box {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-box h3 {
  color: #1e5475;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.info-box a {
  color: inherit;
  text-decoration: none;
}

/* MAP + FORMULAIRE */
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

/* MAP */
.map-section {
  flex: 1;
  min-width: 450px;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.liens {
  margin-top: 12px;
  font-size: 1rem;
  color: #333;
  text-align: left;
}

.liens a {
  color: #1e5475;
  text-decoration: none;
  font-weight: 600;
}

.liens a:hover {
  text-decoration: underline;
}

/* FORMULAIRE */
.contact-form {
  flex: 1;
  min-width: 450px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #d0dcff;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #07248b;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
  outline: none;
}

.contact-form .double {
  display: flex;
  gap: 15px;
}

.contact-form .double input {
  width: 50%;
}

.contact-form button {
  background-color: #07248b;
  color: white;
  border: none;
  padding: 14px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.contact-form button:hover {
  background-color: #274bcc;
  transform: translateY(-2px);
}

/* Responsive contact */
@media (max-width: 768px) {
  .contact {
    padding: 60px 5%;
  }

  .contact-infos {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-box {
    width: 100%;
    max-width: 400px;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .map-section {
    min-width: 100%;
    margin-left: 0;
    align-items: center;
  }

  .map {
    width: 100%;
    height: 300px;
  }

  .liens {
    text-align: center;
  }

  .contact-form {
    min-width: 100%;
    margin-top: 30px;
  }

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

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

@media (max-width: 480px) {
  .contact h2 {
    font-size: 2rem;
  }

  .map {
    height: 250px;
  }

  .contact-form {
    padding: 20px;
  }

  .info-box {
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .contact-content {
    gap: 20px;
  }

  .map-section,
  .contact-form {
    min-width: 100%;
  }

  .map {
    height: 320px;
  }
}


/* FOOTER */
.footer {
  background: #07248b;
  color: white;
  padding: 40px 5%;
  margin-top: 80px;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left h3 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.footer-left p {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #eaeaea;
  font-weight: 500;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #3366ff;
}

.footer-right p {
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive footer */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* SCROLL TOP BUTTON */
.scroll-top-btn {
  position: fixed;
  inset: auto 1rem 1rem auto;
  width: 60px;
  height: 60px;
  background-color: #07248b;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, background-color 0.2s;
  z-index: 9999;
}

.scroll-top-btn:hover {
  background-color: #000;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .scroll-top-btn {
    width: 55px;
    height: 55px;
    inset: auto 0.9rem 0.9rem auto;
    font-size: 22px;
  }
}

@media (max-width: 430px) {
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    inset: auto 0.7rem 0.7rem auto;
    font-size: 18px;
  }
}


.bouton_veille {
  display: inline-block;
  padding: 12px 28px;
  margin-top: 30px;
  margin-left: 370px;
  background: linear-gradient(90deg, #07248b, #2b2e32);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

/* Conteneur projets 2 (si utilisé) */
.projet2-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Responsive boutons / projet2 */
@media (max-width: 1024px) {
  .projet2-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projet2-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bouton_veille {
    margin-left: 0;
    display: block;
    text-align: center;
    width: 80%;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .projet2-container {
    grid-template-columns: 1fr;
  }

  .titre-section {
    font-size: 1.6rem;
  }

  .bouton_veille {
    width: 90%;
  }
}



/* RESPONSIVE GLOBALE */

@media (max-width: 768px) {
  header {
    padding: 15px 25px;
    flex-wrap: wrap;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
  }

  nav ul.show {
    display: flex;
  }

  nav li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .btn_retour {
    width: 130px;
    height: 45px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .btn_retour {
    width: 120px;
    height: 42px;
    font-size: 14px;
    padding: 8px 0;
    border-radius: 6px;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 100px 30px 0;
  }

  .hero-text h2 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .jav-image {
    width: 300px;
    height: 300px;
    margin-top: -60px;
    margin-left: 20px;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 80px 20px;
  }

  .jav-image {
    width: 250px;
    height: 250px;
    margin-top: 30px;
    margin-left: 0;
  }

  .hero-text h2 {
    font-size: 42px;
    margin-bottom: 30px;
  }

  .hero-text p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 150px;
  }

.hero-text h2 {
  font-size: 32px;
  margin-left: 0px;   /* ajuste la distance depuis la gauche */
  text-align: left;    /* empêche le centrage */
}

  .hero-text p {
    font-size: 16px;
  }

  .jav-image {
    width: 300px;
    height: 300px;
    margin-top: -30px;
    margin-left: 0;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .jav-image {
    width: 250px;
    height: 250px;
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .hero-text h2 {
    font-size: 30px;
    line-height: 1.3;
  }

  .hero-text h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 13px;
  }

  .jav-image {
    width: 230px;
    height: 230px;
  }
}



/* MOBILE */
@media (max-width: 480px) {

  .formation {
    padding: 70px 8%;
  }

  .formation-container {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .formation-card {
    padding: 20px;
  }

  .formation-card h3 {
    font-size: 1.1rem;
  }

  .formation-card p,
  .formation-card ul li {
    font-size: 0.9rem;
  }

  .bts-orientation {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .bts-orientation .arrow {
    transform: rotate(90deg);
  }

}

/* TABLETTE */
@media (min-width: 481px) and (max-width: 768px) {

  .formation {
    padding: 80px 9%;
  }

  .formation-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    justify-content: center;
  }

  .formation-card {
    padding: 25px;
  }

  .bts-orientation {
    font-size: 1.1rem;
  }

  .bts-orientation .arrow {
    transform: rotate(90deg);
  }

}

/* GRAND ÉCRAN */
@media (min-width: 1600px) {

  .formation {
    padding: 120px 14%;
  }

  .formation-container {
    max-width: 1400px;
    gap: 40px;
  }

  .formation-card {
    padding: 35px;
  }

  .formation-card h3 {
    font-size: 1.6rem;
  }

  .formation-card p,
  .formation-card ul li {
    font-size: 1.05rem;
  }

}

@media (max-width: 1024px) {
  .mockup {
    width: 100%;
    height: auto;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .projet-container {
    flex-direction: column !important;
    text-align: center;
  }

  .mockup {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .projet-texte h3 {
    font-size: 22px;
  }

  .projet-texte p {
    font-size: 16px;
  }
  .projet-links a{
    width: 150px;
  }
}

@media (max-width: 400px) {
  #competences {
    padding: 60px 4%;
  }

  #competences .titre-section {
    font-size: 1.4rem;
  }

  #competences .filter-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #competences .filter-btn {
    width: 100%;
    font-size: 0.85rem;
  }

  #competences .competences-container {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #competences .skills-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  #competences {
    padding: 70px 5%;
  }

  #competences .titre-section {
    font-size: 1.6rem;
  }

  #competences .skill-card {
    padding: 22px;
  }

  #competences .skill-card img {
    max-width: 75px;
  }

  #competences .skills-title {
    font-size: 1.35rem;
  }

  #competences .text-card {
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  #competences {
    padding: 85px 6%;
  }

  #competences .competences-container {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  #competences .titre-section {
    font-size: 1.9rem;
  }

  #competences .skills-title {
    font-size: 1.55rem;
  }
}

@media (min-width: 1600px) {
  #competences {
    padding: 150px 14%;
  }

  #competences .titre-section {
    font-size: 2.7rem;
  }

  #competences .skills-title {
    font-size: 2rem;
  }

  #competences .skill-card {
    padding: 35px;
  }

  #competences .skill-card h4 {
    font-size: 1.3rem;
  }

  #competences .text-card {
    font-size: 1.15rem;
  }
}

@media (max-width: 400px) {
  .experience-section {
    padding: 60px 4%;
  }

  .experience-card {
    padding: 20px;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .experience-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .experience-info h3 {
    font-size: 1.05rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

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

  .experience-card {
    padding: 25px;
  }

  .experience-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .experience-info h3 {
    font-size: 1.2rem;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .experience-section {
    padding: 80px 7%;
  }

  .tasks-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (min-width: 1600px) {
  .experience-section {
    padding: 140px 14%;
  }

  .experience-card {
    padding: 45px;
  }

  .experience-info h3 {
    font-size: 1.6rem;
  }

  .experience-card p {
    font-size: 1.1rem;
  }

  .task-item span {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .timeline-item {
    width: 80%;
  }

  .timeline-item.droite {
    left: 20%;
  }
}

@media (max-width: 768px) {
  #parcours {
    padding: 70px 5%;
  }

  #parcours .titre-section {
    font-size: 1.7rem;
    margin-bottom: 45px;
  }
.timeline-item {
    width: 70%;
    padding: 20px;
  }


  .timeline-container::before {
    left: 2px;
    transform: none;
  }

  .timeline-item,
  .timeline-item.gauche,
  .timeline-item.droite {
    width: 90%;
    left: 0;
    margin-left: 35px;
    
  }

  .timeline-icon,
  .timeline-icon-2 {
    left: 25px;
    right: auto;
    transform: translateX(-170%);
    width: 45px;
    height: 45px;
  }
}



@media (max-width: 480px) {
  #parcours {
    padding: 50px 4%;
  }

  .timeline-item {
    padding: 18px;
    margin-bottom: 40px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-year {
    font-size: 0.8rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
  }
}

@media (min-width: 1600px) {
  #parcours {
    padding: 140px 14%;
  }

  #parcours .titre-section {
    font-size: 2.6rem;
  }

  .timeline-item {
    padding: 30px;
  }
}

@media (max-width: 992px) {
  .fiches-veille {
    padding: 30px;
  }

  .definition-text {
    font-size: 15px;
    padding: 20px;
  }

  .framework-list li {
    font-size: 15px;
    padding: 12px 16px;
  }
}

@media (max-width: 600px) {
  .fiches-title {
    font-size: 22px;
  }

  .fiche h4 {
    font-size: 18px;
  }

  .fiche .resume {
    font-size: 14px;
  }

  .tags span {
    font-size: 12px;
    padding: 4px 10px;
  }

  .definition-text {
    font-size: 14px;
    padding: 18px;
  }

  .framework-list li {
    font-size: 14px;
    padding: 10px 14px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 5%;
  }

  .contact-infos {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-box {
    width: 100%;
    max-width: 400px;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .map-section {
    min-width: 100%;
    margin-left: 0;
    align-items: center;
  }

  .map {
    width: 100%;
    height: 300px;
  }

  .liens {
    text-align: center;
  }

  .contact-form {
    min-width: 100%;
    margin-top: 30px;
  }

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

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

@media (max-width: 480px) {
  .contact h2 {
    font-size: 2rem;
  }

  .map {
    height: 250px;
  }

  .contact-form {
    padding: 20px;
  }

  .info-box {
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .contact-content {
    gap: 20px;
  }

  .map-section,
  .contact-form {
    min-width: 100%;
  }

  .map {
    height: 320px;
  }
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .scroll-top-btn {
    width: 55px;
    height: 55px;
    inset: auto 0.9rem 0.9rem auto;
    font-size: 22px;
  }
}

@media (max-width: 430px) {
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    inset: auto 0.7rem 0.7rem auto;
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .projet2-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1440px) {
  section,
  .hero,
  #competences,
  #parcours,
  .contact,
  .experience-section {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 768px) {
  section,
  #competences,
  #parcours,
  .experience-section {
    padding-left: 5%;
    padding-right: 5%;
  }
}

@media (max-width: 576px) {
  section,
  #competences,
  #parcours,
  .experience-section {
    padding-left: 4%;
    padding-right: 4%;
  }
}







/* ========================= */
/* MODE SOMBRE - GÉNÉRAL     */
/* ========================= */

body.dark-mode {
  --bg: #0b0f1a;
  --text: #ffffff;
  --title: #ffffff;
  --card: #121630;
  --border: #2a2f45;
  --accent: #72aaff;
}
body.dark-mode {
    background-color: #0b0f1a;
    color: #e0e0e0;
    transition: background-color 0.3s, color 0.3s;
}

/* ========================= */
/* HEADER                     */
/* ========================= */
body.dark-mode header {
    background-color: #0a0d23;
    box-shadow: 0 2px 8px rgba(117, 116, 116, 0.5);
}

body.dark-mode header h1,
body.dark-mode nav a {
    color: #ffffff;
}

body.dark-mode nav a:hover,
body.dark-mode nav a.active {
    color: #72aaff;
}

/* ========================= */
/* BOUTONS                    */
/* ========================= */
body.dark-mode .btn,
body.dark-mode .btn_retour,
body.dark-mode .btn-cv {
    background: linear-gradient(90deg, #1b2a6b, #0b1b3f);
    color: #ffffff;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode .btn:hover,
body.dark-mode .btn_retour:hover,
body.dark-mode .btn-cv:hover {
    background: linear-gradient(90deg, #3a4fcc, #000b33);
}

/* ========================= */
/* SECTIONS PRINCIPALES       */
/* ========================= */
body.dark-mode #profil,
body.dark-mode .formation,
body.dark-mode #parcours,
body.dark-mode .experience-section,
body.dark-mode .realisations,
body.dark-mode #competences,
body.dark-mode .veille-section,
body.dark-mode .contact {
    background-color: #0b0f1a;
    color: #e9e2e2;
}

/* Cartes et éléments spécifiques */
body.dark-mode .timeline-item,
body.dark-mode .theme-card,
body.dark-mode .text-block,
body.dark-mode .formation-card,
body.dark-mode .skill-card,
body.dark-mode .text-card,
body.dark-mode .experience-card,
body.dark-mode .info-box,
body.dark-mode .mockup {
    background-color: #121630;
    color: #e0e0e0;
    box-shadow: 0 1px 5px rgba(170, 169, 169, 0.5);
}

body.dark-mode .timeline-year {
  color: #ffffff;
}

/* ========================= */
/* TYPOGRAPHIE                */
/* ========================= */
body.dark-mode .titre-section,
body.dark-mode .section-header h2 {
    color: #ffffff;
}
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
    color: #c4d1ff !important;
}

body.dark-mode .skill-title,
body.dark-mode .hero-subtitle {
    color: #07248b !important;
}

body.dark-mode .projet-texte p,
body.dark-mode .experience-card p,
body.dark-mode .timeline-desc,
body.dark-mode .text-block,
body.dark-mode .competences-container span,
body.dark-mode .liens,
body.dark-mode .source-info,
body.dark-mode .problematique,
body.dark-mode .formation-card p,
body.dark-mode .formation-card ul li,
body.dark-mode .task-item span,
body.dark-mode .competences-container li {
    color: #ffffff;
}

/* Liens */
body.dark-mode a,
body.dark-mode .cv-buttons .btn-cv,
body.dark-mode .projet-links .btn {
    color: #72aaff;
}

body.dark-mode a:hover,
body.dark-mode .cv-buttons .btn-cv:hover,
body.dark-mode .projet-links .btn:hover {
    color: #a0cfff;
}

/* Petits textes / muted */
body.dark-mode small,
body.dark-mode .muted-text {
    color: #a0a8b8;
}

/* ========================= */
/* ICONES TIMELINE            */
/* ========================= */
body.dark-mode .timeline-icon,
body.dark-mode .timeline-icon-2 {
    background-color: #1b2a6b;
    color: #ffffff;
    border: 3px solid #3a4fcc;
}

/* ========================= */
/* PROGRESS BARS              */
/* ========================= */
body.dark-mode .progress {
    background-color: #1b1f2e;
}

body.dark-mode .progress span {
    background: linear-gradient(90deg, #3a4fcc, #72aaff);
}

/* ========================= */
/* FOOTER                     */
/* ========================= */
body.dark-mode .footer {
    background-color: #0a0d23;
    color: #cccccc;
}

body.dark-mode .footer a {
    color: #72aaff;
}

/* ========================= */
/* BOUTON DARK MODE           */
/* ========================= */
#darkModeToggle {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1b2a6b, #0b1b3f);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 9999;
}

#darkModeToggle:hover {
    background-color: #000;
    transform: translateY(-3px);
}

/* ========================= */
/* MENU BURGER & NAVIGATION   */
/* ========================= */
.menu-toggle {
    background: #0a0d23;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1000;
}

.menu-toggle:hover {
    background: #2563eb;
}

/* Menu burger ouvert */
.menu-toggle.open {
    background: #3b82f6;
}

/* Menu burger ouvert en mode sombre */
body.dark-mode .menu-toggle.open {
    background: #000;
}



/* Liens mode sombre */
body.dark-mode nav a {
    color: #fff;
}

body.dark-mode nav a:hover {
    color: #60a5fa;
}


/* Navigation */
nav ul {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

nav ul.show {
    display: flex;
}
/* Navigation */
nav ul {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
}

nav ul.show {
    display: flex;
}

/* Menu sombre mobile */
body.dark-mode nav ul {
    background-color: #0a0d23;
}

/* Liens */
nav a {
    text-decoration: none;
    color: #0a0d23;
    padding: 8px 12px;
    transition: color 0.2s;
}

nav a:hover {
    color: #2563eb;
}

/* Liens mode sombre */
body.dark-mode nav a {
    color: #fff;
}

body.dark-mode nav a:hover {
    color: #60a5fa;
}


/* Navigation desktop */
nav ul {
    list-style: none;
    display: flex;           /* affichage horizontal par défaut sur desktop */
    flex-direction: row;
    gap: 2px;
    transition: all 0.3s;
    position: static;        /* pas d'overlay sur desktop */
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Menu mobile caché par défaut */
@media (max-width: 768px) {
    nav ul {
        display: none;       /* caché sur mobile */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }

    /* Mode sombre menu mobile */
    body.dark-mode nav ul {
        background-color: #020617;
    }

    /* Affichage menu mobile quand burger actif */
    nav ul.show {
        display: flex;
    }
}