* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #404040;
}

/* Style de la navbar */
nav {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: rgba(33, 33, 33, 0.95);
    z-index: 1000;
}

nav.fixed {
  position: fixed;
  top: 0;
}

nav a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 14px 15px;
 
}

/* Indicateur de section active */
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4a90e2;
  transition: width 0.3s ease;
}

nav a.active::after {
  width: 100%;
}

/* Style spécial pour le lien de connexion */
nav a[href="login.php"] {
    background: linear-gradient(45deg, #b34500, #e5c300);
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

nav a[href="login.php"]:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(179, 69, 0, 0.3);
}

#home {
  height: 100vh;
  width: 100%;
  background-repeat: no-repeat;
  background-image: url(img/plage_acceuil.jpg);
  background-size: cover; 
  background-position: center; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  padding: 0 20px; 
}

.left-content {
  text-align: center; 
  margin-bottom: 2rem; 
  width: 100%; 
}

.name {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.info {
  font-size: 1.25rem;
  color: #ffffff; 
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.login-rectangle {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(45deg, #0039b3, #00a4e5);
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}


.portfolio-box {
  text-align: center; 
  padding: 1rem; 
}

.portfolio-text {
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Animation au survol */
.btn-animate {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-animate:hover {
  background-color: #45a049;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Animation au clic */
.btn-animate:active {
  transform: scale(0.95);
}

/* Animation de pulsation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Animation de brillance */
@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(66, 134, 244, 0.5); }
  50% { box-shadow: 0 0 20px rgba(66, 134, 244, 0.8); }
  100% { box-shadow: 0 0 5px rgba(66, 134, 244, 0.5); }
}

.btn-glow {
  animation: glow 2s infinite;
}

.login-btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(45deg, #b34500, #e5c300);
}

#presentation {
  background-color: #262626;
    min-height: 100vh;
    position: relative;
    padding-top: 60px;
}

#about {
  background-color: #1d1d1d;
}

#contact {
  background-color: #000000;
}

#project {
  background-color: #000000;
}


@media (max-width: 768px) {
  #home {
      flex-direction: column;
      text-align: center;
  }

  .left-content {
      margin: 0 0 2rem 0;
  }

  .portfolio-box {
      margin: 0;
      padding: 2rem;
  }

  .name, .portfolio-text {
      font-size: 2.5rem;
  }

  nav a {
      margin: 0 0.5rem;
      font-size: 0.9rem;
  }
}

body.no-scroll {
  overflow: hidden;
}

.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeOutIntro 0.5s ease-in-out 3s forwards;
}




/*======================================================Presentation================================================================*/

.containerpresentation {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 2.5rem;
  color: #ffd100;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}

.presentation {
  margin-bottom: 2rem;
}

.dev-title {

  color: #ffd100;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.current-position {
  font-weight: bold;
  color: #ffd100;
}

.description {
  margin: 1.5rem 0;
  font-size: 1.1rem;
  color: #ffd100;
}

.java-skills{
  color: #ffd100;
}

.links {
  margin-top: 2rem;
  color: #ffd100;
  
}

.links a {
  color: #feff00;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
  text-decoration: underline;
}

.links a:hover {
  color: #ffb700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
      padding: 1rem;
  }
  
  .title {
      font-size: 2rem;
  }
}

/*====================================================== about me ==================================================================*/

/* Section principale */
.about-me {
  color: white;
  min-height: 100vh;
}

.about_me {
  width: 100%;
  padding-top: 100px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

#About {
  background: #161616;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.About-container {
  width: 100%;
  max-width: 1200px;
}

.About h1 {
  text-align: center;
  color: #fff;
  font-size: 3rem;
  margin-bottom: 60px;
  letter-spacing: 8px;
  position: relative;
  padding-bottom: 20px;
}

.About h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2, #2962ff);
}

.About-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Image de profil */
.my_profil_picture {
  width: 25%;
  border-radius: 5%;
}

.my_profil_picture img {
  width: 100%;
  object-fit: cover;
  border-radius: 5%;
}

/* Section d'informations */
.information_profil {
  width: 60%;
  background-color: transparent;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.information_profil h1 {
  text-align: center;
  font-size: 2rem;
}

/* Section cartes d'info */
.mes_info_perso {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.mes_info_perso:last-child {
  margin-bottom: 0;
}

/* Styles de base pour les cartes */
.info_box {
  position: relative;
  width: 120px;
  height: 150px;
  cursor: pointer;
}

.info_box_large {
  width: calc(100% - 330px);
  height: 150px;
}

.info_box_medium {
  width: calc(50% - 15px);
  height: 150px;
}

.info_inner {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.info_box_large .info_inner,
.info_box_medium .info_inner {
  align-items: flex-start;
  padding: 20px;
}

.info_box:hover .info_inner {
  transform: translateY(-5px);
}

/* Styles pour les icônes Lucide */
[class^="icon-"] {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

/* Styles pour le texte */
.info_text {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 8px;
}

.info_icon {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.info_content {
  font-size: 0.9em;
  color: #fff;
  text-align: left;
  margin-top: 8px;
  line-height: 1.4;
}

/* Couleurs et styles spécifiques pour chaque carte */
.info-age .info_inner {
  box-shadow: 0 0 0 2px #4ECDC4;
}
.info-age [class^="icon-"] {
  color: #4ECDC4;
}

.info-ecole .info_inner {
  box-shadow: 0 0 0 2px #4ECDC4;
}
.info-ecole [class^="icon-"] {
  color: #4ECDC4;
}

.info-location .info_inner {
  box-shadow: 0 0 0 2px #4ECDC4;
}
.info-location [class^="icon-"] {
  color: #4ECDC4;
}

.info-background .info_inner {
  box-shadow: 0 0 0 2px #4ECDC4;
}
.info-background [class^="icon-"] {
  color: #4ECDC4;
}

.info-goals .info_inner {
  box-shadow: 0 0 0 2px #4ECDC4;
}
.info-goals [class^="icon-"] {
  color: #4ECDC4;
}

.info-frustration .info_inner {
  box-shadow: 0 0 0 2px #4ECDC4;
}
.info-frustration [class^="icon-"] {
  color: #4ECDC4;
}

/* Styles pour la carte location */
.location .info_inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.location:hover .info_inner {
  transform: rotateY(180deg);
}

.info_front, .info_back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
}

.info_back {
  transform: rotateY(180deg);
  padding: 0;
}

.info_front {
  background: #1a1a1a;
  padding: 15px;
}

/* Map container */
.map-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* Section Skills */
.skill-block {
  background: #121212;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(36, 34, 34, 0.012);
}

.skill {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.skill:last-child {
  margin-bottom: 0;
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #2a2a2a;
}

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

.skill-info {
  flex: 1;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-header h2 {
  color: #fff;
  font-size: 1.5em;
  font-weight: 500;
  margin: 0;
}

.percentage {
  color: #00f2ff;
  font-size: 1em;
  font-weight: bold;
}

/* Modifiez vos styles de progression bar comme suit */
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #2962ff);
  border-radius: 4px;
  position: relative;
  width: 0; /* Commence à 0% */
  transition: width 1.5s ease; /* Animation fluide */
}

.progress.active {
  width: var(--value); /* Utilise la valeur du data-attribute */
}

.progress .glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(5px);
  animation: glowingEffect 2s infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.progress.active .glow {
  opacity: 1;
}

@keyframes glowingEffect {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(500%); }
}

/* Animation au survol */
.skill:hover .progress {
  opacity: 0.8;
  transform: scaleY(1.2);
  transition: all 0.3s ease;
}

/* Animation au survol */
.skill:hover .progress {
  opacity: 0.8;
  transform: scaleY(1.2);
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about_me {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .my_profil_picture {
    width: 50%;
  }
  
  .information_profil {
    width: 90%;
  }
  
  .info_box_large {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mes_info_perso {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .info_box, 
  .info_box_medium {
    width: calc(50% - 15px);
  }
  
  .skill-header h2 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .my_profil_picture {
    width: 80%;
  }
  
  .info_box, 
  .info_box_medium,
  .info_box_large {
    width: 100%;
  }
  
  .skill {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .skill-icon {
    margin-bottom: 10px;
  }
}
/*===========================================================Parcours=========================================================*/

#parcours {
  background: #161616;
  padding: 80px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.parcours-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.parcours-container h1 {
  text-align: center;
  color: #fff;
  font-size: 3rem;
  margin-bottom: 60px;
  letter-spacing: 8px;
  position: relative;
  padding-bottom: 20px;
}

.parcours-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2, #2962ff);
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.parcours-card {
  background: #1e1e1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.parcours-card:hover {
  transform: translateY(-10px);
}

.card-header {
  background: linear-gradient(45deg, #2962ff, #4a90e2);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-icon {
  font-size: 2rem;
  background: rgba(255,255,255,0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

.card-content {
  padding: 30px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
  border-left: 2px solid #00c5df;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.year {
  color: #00DFFF;
  font-weight: bold;
  margin-bottom: 10px;
}

p{
  line-height: 1.5;
}
.event h3 {
  color: #fff;
  margin-bottom: 5px;
}

.event p {
  color: #aaa;
  font-size: 0.9rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.skill-tags span {
  background: rgba(74,144,226,0.1);
  color: #00DFFF;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.activity-box {
  margin-bottom: 30px;
  background: rgba(74,144,226,0.05);
  border-radius: 15px;
  overflow: hidden;
}

.activity-box:last-child {
  margin-bottom: 0;
}

.activity-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity-box:hover .activity-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.image-overlay span {
  color: #fff;
  font-size: 0.9rem;
}

.activity-details {
  padding: 20px;
}

.activity-details h3 {
  color: #fff;
  margin-bottom: 5px;
}

.activity-details p {
  color: #00e7e7;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .parcours-grid {
      grid-template-columns: 1fr;
  }

  .parcours-container h1 {
      font-size: 2rem;
      letter-spacing: 4px;
  }

  .activity-image {
      height: 150px;
  }
}

/*===========================================================Project===========================================================*/

.container {
  width: 100%;
  max-width: 800px;  
  display: flex;
  justify-content: center;  
  flex-direction: column;   
  align-items: center;      
  gap: 40px;               
  padding: 40px 0;
  margin: 0 auto;
}

#project {
  background-color: #161616;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.project-container h1 {
  text-align: center;
  color: #fff;
  font-size: 3rem;
  margin-bottom: 60px;
  letter-spacing: 8px;
  position: relative;
  padding-bottom: 20px;
}

.project-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2, #2962ff);
}

/* Nouvelle grille de projets */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.card {
  position: relative;
  width: 280px; /* Largeur fixe mais adaptée aux petits écrans */
  height: 200px;
  background-color: #f2f2f2;
  background-position: center;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 0 auto; /* Centre les cartes */
}

.project-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto-responsive grid */
  gap: 30px;
  width: 100%;
  justify-items: center;
}

/* Carte de projet simplifiée et robuste */
.project-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

.project-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-image {
  height: 180px;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-details {
  padding: 20px;
  background-color: #1e1e1e;
}

.project-details h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-details p {
  color: #b4b4b4;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-details button {
  background: linear-gradient(90deg, rgb(173, 0, 203), rgb(255, 123, 0));
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  min-height: 44px;
}

/* Media Queries pour la responsive */
@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .project-container h1 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .project-image {
    height: 160px;
  }
  
  .project-details h3 {
    font-size: 1.1rem;
  }
  
  .project-details p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #project {
    padding: 60px 15px;
  }
  
  .project-container h1 {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
}
/*===========================================================Contact===================================================*/
#contact {
  background-color: #2b2f33;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  background-color: #2b2f33;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(50, 53, 57, 0.7);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-section {
  width: 60%;
  padding: 50px;
  color: white;
}

.form-section h1 {
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
}

.form-section .subtitle {
  color: #acacac;
  margin-bottom: 30px;
  font-size: 1.5em;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: white;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(90deg, rgb(0, 42, 255), rgb(0, 132, 255));
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  min-height: 44px;
}

.image-section {
  width: 40%;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*==================================================Footer======================================================*/

footer {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 1rem;
  bottom: 0;
  width: 100%;
}

/*===============================================Responsive=====================================================*/

@media (max-width: 1200px) {
  /* Sections générales */
  .parcours-container,
  .container,
  .about-me,
  .containerpresentation {
    width: 95%;
    padding: 20px;
  }
  
  /* Contact */
  .contact-wrapper {
    max-width: 95%;
  }
}

/* Tablettes et écrans moyens (jusqu'à 992px) */
@media (max-width: 992px) {
  /* Navigation */
  nav {
    padding: 15px;
    gap: 20px;
  }
  
  nav a {
    font-size: 14px;
  }
  
  /* Section Home */
  .container2 .main-title {
    font-size: 6rem;
  }
  
  .vision-title {
    font-size: 1rem;
  }
  
  /* Section About Me */
  .about_me {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .my_profil_picture {
    width: 50%;
  }
  
  .information_profil {
    width: 90%;
  }
  
  /* Section Parcours */
  .parcours-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Section Projets */
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Section Contact */
  .contact-container {
    flex-direction: column;
  }
  
  .form-side,
  .image-side {
    width: 100%;
  }
  
  .image-side {
    height: 300px;
  }
  
  /* Project Section */
  .project-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact Box */
  .contact-box {
    flex-direction: column;
  }
  
  .contact-left,
  .contact-right {
    width: 100%;
  }
  
  .contact-right {
    height: 300px;
  }
}

/* Mobiles (jusqu'à 768px) */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 10px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Section Home */
  #home {
    flex-direction: column;
    text-align: center;
  }
  
  .left-content {
    margin: 0 0 2rem 0;
  }
  
  .portfolio-box {
    margin: 0;
    padding: 2rem;
  }
  
  .name, .portfolio-text {
    font-size: 2.5rem;
  }
  
  .container2 .main-title {
    font-size: 4rem;
  }
  
  .container2 .description {
    font-size: 1rem;
  }
  
  /* Section About Me */
  .mes_info_perso {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .info_box,
  .info_box_large,
  .info_box_medium {
    width: 100%;
    height: auto;
    min-height: 120px;
  }
  
  .skill-header h2 {
    font-size: 1.2em;
  }
  
  /* Containerpresentation */
  .containerpresentation {
    padding: 1rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  /* Section Parcours */
  .parcours-grid {
    grid-template-columns: 1fr;
  }
  
  .parcours-container h1 {
    font-size: 2rem;
    letter-spacing: 4px;
  }
  
  .activity-image {
    height: 150px;
  }
  
  /* Section Project */
  .container {
    grid-template-columns: 1fr;
  }
  
  .card {
    width: 100%;
    max-width: 300px;
  }
  
  .project-content {
    grid-template-columns: 1fr;
  }
  
  .project-container h1 {
    font-size: 2rem;
  }
  
  /* Section Contact */
  #contact {
    padding: 60px 15px;
  }
  
  .form-side {
    padding: 30px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-side h1 {
    font-size: 1.8rem;
  }
  
  .contact-left {
    padding: 30px;
  }
  
  /* Contact - Faire disparaître l'image */
  .contact-box {
    flex-direction: column;
  }
  
  .form-section {
    width: 100%;
    padding: 30px;
  }
  
  .image-section {
    display: none; /* L'image disparaît sur mobile */
  }
  
  .form-section .subtitle {
    font-size: 1.2em;
  }
}

/* Très petits écrans (jusqu'à 480px) */
@media (max-width: 480px) {
  /* Section Home */
  .container2 .main-title {
    font-size: 3rem;
  }
  
  .vision-title {
    font-size: 0.9rem;
  }
  
  /* Section About Me */
  .my_profil_picture {
    width: 80%;
  }
  
  .info_box, 
  .info_box_medium,
  .info_box_large {
    width: 100%;
  }
  
  .skill {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .skill-icon {
    margin-bottom: 10px;
  }
  
  /* Navigation */
  nav a {
    font-size: 12px;
    padding: 8px;
  }
  
  /* Section Contact */
  #contact {
    padding: 40px 15px;
  }
  
  .form-side {
    padding: 25px;
  }
  
  .form-side h1 {
    font-size: 1.6rem;
  }
  
  .contact-left h1 {
    font-size: 1.6rem;
  }
  
  /* Animation Logo */
  .mg-text {
    font-size: 4rem;
  }
}

/* Ajustements pour la hauteur sur mobile */
@media (max-height: 700px) {
  section {
    padding: 60px 0;
  }
}

/* Ajustements pour l'orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .container2 {
    height: auto;
    min-height: 100vh;
  }
  
  .contact-content {
    min-height: auto;
  }
}