/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  background: 
    url('https://images.unsplash.com/photo-1639762681057-408e52192e55?q=80&w=2232&auto=format&fit=crop') no-repeat center center fixed;  background-size: cover; /* Garde le fond image fixe sur le body */
  background-attachment: fixed;
  color: #222;
  line-height: 1.6;
  transition: margin-left 0.3s ease-in-out;  
  
  /* background-color: rgba(255, 255, 255, 0.2);
    background-blend-mode: lighten; */
}

/* ===== VARIABLES COULEURS ===== */
:root {
  --blanc: #ffffff;
  --noir: #222;
  --rouge: #c00;
  --gris: #eee;
  --gris-foncé: #A9A9A9;

}

/* ===== NAVIGATION ===== */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;  
  min-height: 80vh;  
  background-color: rgba(255, 255, 255, 0.7);
  margin-top: 20px; 
  padding-top: 60px;
}

header {
  position: sticky;
  top: 0;
  background: var(--blanc);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 60px; /* Ajout d'une hauteur fixe */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%; /* Utilisez width: 100% au lieu de max-width */
  margin: 0 auto; 
}

.logo {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--noir);
  text-decoration: none;
  white-space: nowrap; /* Empêche les retours à la ligne */
  margin-right: auto; /* Pousse le logo tout à gauche */

}

.menu {
  display: flex;
  list-style: none;
  gap: 0.4rem; /* réduit mais pas supprimé */
  justify-content: flex-end; /* Pour que le menu soit collé à droite */
  
  flex-wrap: wrap; /* Permet le retour à la ligne si besoin */
  /* 
  gap: 2rem;
  flex-wrap: nowrap;  Bloquer les retours à la ligne */  
}

.menu li a { 
  align-items: center;
  font-size: 1.4rem;
  color: var(--noir);
  text-decoration: none;
  padding: 0.5rem 1rem; 
  white-space: nowrap; /* Empêche les retours à la ligne */
  line-height: 1.6rem; /* Centrer les éléments */
  overflow: hidden; /* Gérer le débordement */
  text-overflow: ellipsis; /* Ajouter des points de suspension pour le texte débordant */
  transition: border-bottom 0.3s;
}

.menu li a:hover {
  background: var(--gris); /* Légère couleur de fond au survol */
  color: var(--rouge); /* Changer la couleur du texte pour plus de contraste */
  border-bottom: 2px solid var(--rouge);
}


/* ===== BURGER MOBILE ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--noir);
  transition: 0.3s;
}

#menu-toggle {
  display: none;
}


.container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero_content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero_title {
  font-size: 4rem;
  font-weight: normal;
}

.hero_title span {
  color: var(--rouge);
  font-weight: bold;
}

.hero_subtitle {
  font-size: 2rem;
  max-width: 80%;
}

.hero_buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn {
  background: none;
  color: var(--noir);
  padding: 1rem 2rem;
  border: 1px solid var(--noir);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--noir);
  color: var(--blanc);
}

.btn--primary {
  background: var(--rouge);
  color: var(--blanc);
  border: 1px solid var(--rouge);
}

.btn--primary:hover {
  background: #900;
}

.social {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
}

.social_link {
  color: var(--noir);
  font-size: 2.4rem;
  transition: color 0.3s;
}

.social_link:hover {
  color: var(--rouge);
}


/* ===== HERO IMAGE ===== */
.hero_image img {
  height: auto;
  border-radius: 10px;
  border: 5px solid var(--blanc);
  box-shadow: 0 0 0 1px var(--noir);

  /*
  width: 100% */
  max-width: 300px; /* Limite la taille de l'image sur les grands écrans */
  filter: grayscale(30%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.hero_image img:hover {
  filter: grayscale(0);
}

/* ===== SECTION ABOUT ===== */
.section {
  padding: 8rem 2rem;
  background-color: var(--gris);
  color: var(--noir);
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  border-radius: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  /*
    .section {
      padding: 4rem 2rem;
      background-color: var(--blanc);
      margin: 2rem auto;
      max-width: 1000px;
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
  */
}

.container_about {
  max-width: 1000px;
  margin: 0 auto;
}

.section_title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #222;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}
/* 
  .section_title {  
    font-size: 3rem;
    color: var(--noir);
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
  }

  Parcours :  
  .section_title {
    font-size: 3rem;
    color: var(--noir);
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
  } 
*/

/* Barre rouge sous le titre */
.section_title::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, #c00, #900);
  margin: 1.2rem auto 0;
  border-radius: 10px;
}
/*
  .section_title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--rouge);
    margin: 1.5rem auto 0;
    border-radius: 2px;
  }

  Parcours : 
  .section_title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--rouge);
    margin: 1.5rem auto 0;    
  } 
*/

.about_content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.about_intro {
  font-size: 1.8rem;
}

/* ===== SECTION PARCOURS ===== */
#journey {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  margin: 6rem auto;
  max-width: 1200px;
  padding: 8rem 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.container_journey {
  max-width: 1000px;
  margin: 0 auto;
}

.sub_section_title {
  font-size: 2.4rem;
  color: var(--noir);
  margin: 4rem 0 2rem;
  position: relative;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sub_section_title i {
  color: var(--rouge);
  font-size: 2.2rem;
}

.sub_section_title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gris-foncé), transparent);
}

.grid_journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.journey_item {
  background: var(--blanc);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--rouge);
  transition: transform 0.3s ease;
}

.journey_item:hover {
  transform: translateY(-3px);
}

.journey_content h3 {
  font-size: 1.8rem;
  color: var(--rouge);
  margin-bottom: 1.5rem;
}

.journey_periode,
.journey_etablissement,
.journey_lieu {
  font-size: 1.4rem;
  color: var(--noir);
  margin-bottom: 0.8rem;
  display: block;
}

.journey_details {
  margin-top: 1.5rem;
}

.journey_details li {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.5;
  position: relative;
  list-style-type: none;
  padding-left: 1.2rem;
  text-indent: -1.2rem;
}

.journey_details li::before {
  content: "›";
  color: var(--rouge);
  font-weight: bold;
  padding-right: 0.5rem;
}

.journey_date {
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.3rem 1.5rem;
  border-radius: 1rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  /*
    .journey_date {
      background: var(--rouge);
      color: var(--blanc);
      width: 6rem;
      height: 6rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      margin: 0 auto 1.5rem;
      font-size: 1.6rem;
    }
  */
}

.journey_separator {
  border: none;
  height: 1px;
  background: var(--rouge);
  margin: 5rem 0;
  position: relative;
}

.journey_separator::before,
.journey_separator::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--rouge);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.journey_separator::before {
  left: -30px;
}

.journey_separator::after {
  right: -30px;
}


/* ========== SECTION COMPÉTENCES ========== */
.container_skills {
  max-width: 1100px;
  margin: 0 auto;
}

.skills_grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.skills_item {
  background: #fff;
  border-top: 4px solid #c00;
  border-radius: 1rem;
  padding: 2rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
  position: relative;
}

/* Effet de survol sur la carte compétence */
.skills_item:hover {
  box-shadow: 0 0 0 3px #c00;
  background-color: #fdfdfd;
}

.skills_icon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Logos standards + logo phpMyAdmin : taille + transition + centrage du zoom */
.skills_logo,
.phpmyadmin_logo {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center center; /* Pour que le zoom reste centré */
}

/* Effet zoom + ombre rouge sur tous les logos */
.skills_logo:hover,
.phpmyadmin_logo:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
}

/* Logo phpMyAdmin : plus grand et légèrement décalé */
.phpmyadmin_logo {
  width: 60px;
  height: 50px;
  transform: translateY(-8px) translateX(-8px); /* Décale le logo vers le haut et la gauche */
}

/* Même effet hover mais avec zoom centré + position conservée */
.phpmyadmin_logo:hover {
  transform: translateY(-8px) translateX(-8px) scale(1.25);
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
}

.skills_item h3 {
  font-size: 1.8rem;
  color: #111;
  margin-bottom: 1.2rem;
}

.skills_item ul {
  list-style: none;
  padding: 0;
}

.skills_item li {
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
  color: #444;
  position: relative;
  padding-left: 1.4rem;
}

/* Petite flèche rouge avant chaque compétence */
.skills_item li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #c00;
  font-weight: bold;
}

.skills_item a {
  color: #c00;
  text-decoration: none;
  border-bottom: 1px dotted #c00;
  transition: all 0.2s ease;
}

/* Effet surlignement du lien au survol */
.skills_item a:hover {
  border-bottom: 1px solid #900;
  color: #900;
}


/* ===== SECTION PORTFOLIO ===== */
#portfolio {
  padding: 8rem 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 6rem auto;
  max-width: 1200px;
  border-radius: 2rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

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

/* Filtres */
.portfolio_filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter_btn {
  padding: 0.8rem 1.8rem;
  background: white;
  border: 2px solid #007bff;
  color: #007bff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.filter_btn:hover,
.filter_btn.active {
  background: #007bff;
  color: white;
}

/* Grille portfolio */
.portfolio_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}

.portfolio_card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.portfolio_thumbnail {
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}

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

.portfolio_card:hover .portfolio_img {
  transform: scale(1.05);
}

.portfolio_content {
  padding: 2rem;
}

.portfolio_title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.portfolio_desc {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.portfolio_tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.tech_tag {
  background: #f0f0f0;
  color: #555;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 1.2rem;
}

.portfolio_link {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.portfolio_link:hover {
  background: #0056b3;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox_content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox_content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close_btn {
  position: absolute;
  top: -15px;
  right: -20px;
  background: black;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem; /* Réduit la taille du carré */
}



/* ===== SECTION VEILLE ===== */
.section_watch { 
  padding: 8rem 2rem 2rem 2rem;
  /* top | right | bottom | left */ 
  background: #f8f9fa;
  margin: 6rem auto;
  max-width: 1200px;  
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.steps, .tools, .examples {
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.steps h3, .tools h3, .examples h3 {
  font-size: 2rem;
  color: #2d3436;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #6e45e2;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.list, .tools {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.item, .col {
  flex: 1 1 300px;
  background: #f0f0f0;
  padding: 2rem;
  border-radius: 10px;
  /* transition conservée mais sans effet hover */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ddd;
}

/* Effets au survol désactivés */
.item:hover, .col:hover {
  transform: none;
  box-shadow: none;
}

.item h4, .col h3 {
  font-size: 1.6rem;
  color: #2d3436;
  margin-bottom: 1.2rem;
}

.item ul, .col ul {
  list-style: none;
  padding-left: 0;
}

.item li, .col li {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #555;
  padding-left: 1.5rem;
  position: relative;
}

.item li::before, .col li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #6e45e2;
  font-weight: bold;
}

a {
  color: #6e45e2;
  text-decoration: none;
  border-bottom: 1px dashed #6e45e2;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  font-weight: 500;
}

a:hover {
  color: #88d3ce;
  border-bottom: 1px solid #88d3ce;
}

.card {
  background: #f0f0f0;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 4px solid #6e45e2;
  /* transition conservée mais sans effet hover */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: none;
  box-shadow: none;
}

.card h4 {
  font-size: 1.5rem;
  color: #2d3436;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 0.5rem;
}



/* ===== SECTION CONTACT ===== */
.section_contact {
  padding: 4rem 2rem 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 3rem auto;
  max-width: 1200px;
  border-radius: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.container_contact {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.contact_grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* Blocs de contact */
.contact_form,
.contact_info {
  flex: 1 1 100%;
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Mobile: en colonne */
@media (max-width: 767px) {
  .contact_form,
  .contact_info {
    max-width: 100%;
  }
}

/* Tablette: 60% / 40% */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact_form {
    flex: 1 1 60%;
  }

  .contact_info {
    flex: 1 1 38%;
  }
}

/* Bureau: 65% / 35% */
@media (min-width: 1024px) {
  .contact_form {
    flex: 1 1 65%;
  }

  .contact_info {
    flex: 1 1 33%;
  }
}

/* Formulaire */
.form_group {
  margin-bottom: 2rem;
}

.form_label {
  display: block;
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.form_input,
.form_textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.form_input:focus,
.form_textarea:focus {
  border-color: #6e45e2;
  background: #fff;
  outline: none;
}

.form_textarea {
  min-height: 250px;
  resize: vertical;
}

.btn_primary {
  background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
  color: #fff;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn_primary:hover {
  background: linear-gradient(135deg, #5b378f 0%, #6caea9 100%);
  transform: translateY(-2px);
}

/* Informations */
.info_item {
  margin-bottom: 2rem;
  text-align: center;
}

.info_item i {
  font-size: 2.4rem;
  color: #6e45e2;
  margin-bottom: 0.8rem;
  display: block;
}

.info_item h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.info_item p,
.info_item a {
  font-size: 1.4rem;
  color: #555;
  display: block;
  text-decoration: none;
  word-wrap: break-word;
}

.info_item a:hover {
  color: #88d3ce;
}

/* Réseaux sociaux */
.contact_social {
  width: 100%;
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  text-align: center;
}

.contact_social p {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 1rem;
}

.social_links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.social_links a {
  color: #6e45e2;
  font-size: 2.8rem;
  transition: color 0.3s ease;
}

.social_links a:hover {
  color: #88d3ce;
}




/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark, #222);
  color: #fff;
  padding: 0.8rem 2rem;  /* padding vertical réduit */
  text-align: center;
  font-size: 1.4rem;
  margin-top: 3rem;
  width: 100%;           /* plein largeur */
  border-radius: 0 0 1.2rem 1.2rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box; /* pour inclure padding dans largeur */
}

.footer_text {
  margin: 0;
  font-weight: 500;
  user-select: none;
}

/* ===== RESPONSIVE ===== */
/* Tablettes et petits écrans (≤ 1024px) */
@media (max-width: 1024px) {  
  body {
    font-size: 1.4rem; /* Réduire la taille de la police */
  }

  .container,
  .hero_content {
    flex-direction: column;
    text-align: center;
  } 

  .hero_buttons {
    flex-direction: column;
  }

  .hero_image img {
    margin-top: 3rem;
  }    

  .menu {
    position: fixed;
    top: 0;    
    left: -250px; /* Position initiale du menu mobile */
    width: 250px;
    height: 100vh; 
    background: var(--blanc);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 3rem;
    border-right: 1px solid var(--gris);
    transition: left 0.3s ease-in-out; /* Ajout de la transition pour une animation fluide */
    z-index: 999;
  }

  .menu li {
    margin: 2rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  #menu-toggle:checked + .menu-toggle + .menu {
    left: 0; /* Lorsque l'input est checked, le menu s'affiche */
  }  
  
  .skills_grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptation pour les tablettes */
  }
  .skills_item {
    padding: 1.8rem;
  }
  .skills_item h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1025px) {
  #menu-toggle:checked + .menu-toggle + .menu {
    left: auto !important;
  }
}

@media (max-width: 768px) { 
  body {
    font-size: 1.2rem; /* Réduire la taille de la police */
  }

  .container,
  .hero_content {
    flex-direction: column;
    text-align: center;
  }

  .hero_title {
    font-size: 3.5rem;
  }

  .hero_subtitle {
    font-size: 1.8rem;
    max-width: 90%;
  }

  .hero_buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .menu {
    left: -250px;
    width: 250px;
    height: 100vh;
    background: var(--blanc);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    position: fixed;
    top: 0;
    border-right: 1px solid var(--gris);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .menu li {
    margin: 2rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  #menu-toggle:checked + .menu-toggle + .menu {
    left: 0;
  }

  /**/
  .section_skills {
    padding: 4rem 1rem;
  }
  .section_title {
    font-size: 2.2rem;
  }
  .skills_grid {
    grid-template-columns: 1fr; /* Affichage en une colonne sur mobile */
  }
  .skills_item {
    padding: 1.5rem;
  }
  .skills_item h3 {
    font-size: 1.4rem;
  }
  .skills_item li {
    font-size: 1.2rem;
  }
  .skills_item a {
    font-size: 1.2rem;
  }
  
  /**/
  .portfolio_grid {
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
  }
  .filter_btn {
    padding: 8px 15px; /* Moins de padding pour les petits écrans */
    font-size: 0.9rem;
  }

  .portfolio_card {
    padding: 15px; /* Moins de padding pour plus de place */
  }
  .portfolio_title {
    font-size: 1rem; /* Réduction de la taille du titre */
  }
  .portfolio_desc {
    font-size: 0.9rem;
  }
  .portfolio_link {
    font-size: 0.9rem;
  }
  /* --- Fin des styles responsive --- */
  
  .contact_form,
  .contact_info {
    max-width: 100%;
    padding: 2rem;
  }
  
  .contact_grid {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }
  /**/      
}

/* Mobiles très petits (≤ 480px) */
@media (max-width: 480px) {
  .hero_title {
    font-size: 3rem;
  }

  .hero_subtitle {
    font-size: 1.6rem;
    max-width: 95%;
  }

  .hero_buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero_buttons .btn {
    padding: 1rem 1.5rem;
  }

  .menu li a {
    font-size: 1.4rem;
  }  

  /**/
  .portfolio_grid {
    grid-template-columns: 1fr; /* 1 seule colonne */
  }
  .filter_btn {
    padding: 6px 12px; /* Moins de padding */
    font-size: 0.8rem;
  }

  .portfolio_card {
    padding: 10px; /* Moins de padding */
  }
  .portfolio_title {
    font-size: 0.9rem;
  }
  .portfolio_desc {
    font-size: 0.85rem;
  }
  .portfolio_link {
    font-size: 0.85rem;
  }
  /* --- Fin des styles responsive --- */
  /**/  
}

/* Titre section 
.section_title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #222;
  position: relative;
}

.section_title::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  background: linear-gradient(to right, #6e45e2, #88d3ce);
  margin: 1rem auto 0;
  border-radius: 10px;
}
*/


