h1 {
    font-size: 4em;
    font-weight: bolder;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 0.5em; /* Adjust this value as needed */
}
h2{
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
    margin-bottom: 0.25em; /* Adjust this value as needed */
    font-size: 3em;
}
h4 {
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
    margin-bottom: 0.25em; /* Adjust this value as needed */
}

h3{
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
    margin-bottom: 0.15em; /* Adjust this value as needed */
}
p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-top: 0; /* Remove top margin */
}
button{
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

menu {
    display: flex;
    gap: 3em;
    border-bottom: solid 1px black;
    width: fit-content;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-right: 20%;
}

#menu_img {
    border: 1px solid #fff;
    border-radius: 50%;
    margin-right: auto;
    background-color: #fff;
    position: absolute;
    top: 4.5%;
}

#menu_img:hover {
    filter: blur(1px);
}

#button_menu{
    display: flex;
    flex-direction: row;
    appearance: none;
    align-items: center;
    border-style: none;
    fill: currentcolor;
    background-color: #fff;
    cursor: pointer;
    position: absolute;
    top: 2;
    left: 0;
}
#img_menu{
    position: absolute;
    right: 1em;
    top: 1em;
}
#menu_button {
    margin-bottom: 1em;
    align-items: center;
    appearance: none;
    background-color: #fff;
    border-radius: 24px;
    border-style: none;
    box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px, rgba(0, 0, 0, .14) 0 6px 10px 0, rgba(0, 0, 0, .12) 0 1px 18px 0;
    box-sizing: border-box;
    color: #3c4043;
    cursor: pointer;
    display: inline-flex;
    fill: currentcolor;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    justify-content: center;
    letter-spacing: .25px;
    line-height: normal;
    max-width: 100%;
    overflow: visible;
    padding: 2px 24px;
    position: relative;
    text-align: center;
    text-transform: none;
    transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, .2, 1) 0ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
    will-change: transform, opacity;
    z-index: 0;
}

#menu_button:hover {
    background: #F6F9FE;
    color: #174ea6;
}

#second_menu_uper_part {
    margin-top: 5%;
    display: flex;
    justify-content: center;
    align-items: center; /* Align items horizontally */
    gap: 35px;
}

#grid_second_menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1em; /* Adjust the gap as needed */
}

#welcome {
    display: flex;
    flex-direction: column;
    width: 25%;
    margin-top: -1em; /* Adjust this value as needed to align with the image */
}

#second_menu_lower_part{
   
    justify-content: center;

}

.button_second_menu{
    border: 1px solid #fff;
    border-radius: 8px;
    height: 40px;
    background: linear-gradient(90deg, #82a0bf, #A0C4FF);
    color: #2D3748;
}

.button_second_menu:hover{
    transform: scale(1.05);
    box-shadow: 0px 6px 8px white;
}
main{
    flex: 1;
    margin-bottom: 5%;
}
footer {
    width: 100%;
    /* Add any additional styling needed */
}
#footer_div{
    display: flex;
    border-top: 1px solid rgb(118, 115, 115);
    width: 80%;
    height: 8em;
    justify-content: space-between; /* Change from center to space-between */
    align-items: center; /* Align items vertically */
    margin-left: auto;
    margin-right: auto;
    
}

#main_cv{ 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

#resume_download_zone{
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 2em;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}


#main_exp_pro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.row_pro {
    width: 80%;
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-bottom: 3em;
    margin-left: 20%;
    margin-right: auto;
    
}

.column_2_pro{
    max-width: fit-content;
}

#contact_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
}

#contact_form form {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 600px;
}

#contact_form label {
    margin-top: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

#contact_form input, #contact_form textarea {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.5em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact_form button {
    margin-top: 1em;
    align-self: flex-start;
}

#contact_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
}

#contact_form form {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 600px;
}

#contact_form label {
    margin-top: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

#contact_form input, #contact_form textarea {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.5em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact_form button {
    margin-top: 1em;
    align-self: flex-start;
}
#main_competences{
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.competence{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.title_competence{
    margin-bottom: 1em;
}

#liste_competence {
    counter-reset: list-counter; /* Initialise un compteur */
}

#liste_competence li {
    list-style: none; /* Retire la puce par défaut */
    position: relative;
    padding-left: 30px; /* Espace pour afficher le numéro */
    ;
}

#liste_competence li::before {
    content: counter(list-counter) ". "; /* Ajoute le numéro devant */
    counter-increment: list-counter; /* Incrémente le compteur pour chaque li */
    font-weight: bold; /* Applique le style en gras aux numéros */
    position: absolute;
    left: 0;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

 /* The switch - the box around the slider */
 .switch {
    position: absolute;
    right: 1em;
    top: 1.5em;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Couleur neutre par défaut */
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border: 1px solid #aaa; /* Ajout d'un contour pour plus de contraste */
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
  }
  
  /* Mode sombre activé */
  input:checked + .slider {
    background-color: #222; /* Fond sombre */
    border-color: #444; /* Contour pour correspondre au fond */
  }
  
  input:checked + .slider:before {
    background-color: #ccc; /* Bouton clair dans le mode sombre */
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Effet au focus */

  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  
  .menu_button.dark_mode {
    color: white !important; /* texte en blanc sur fond noir */
    background-color: black !important; /* fond noir */
    border: 1px solid white !important;
  }
  
  .menu_button.light_mode {
    color: black !important; /* texte en noir sur fond blanc */
    background-color: white !important; /* fond blanc */
    border: 1px solid white !important;
  }
  .menu_button.dark_mode:hover {
    background: #181818 !important;
    color: #c4c4c4 !important;
  }
  .menu_button.light_mode:hover{
    background: #F6F9FE !important;
    color: #174ea6 !important;
  }
