@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");

/* Variables */
:root {
  --font-family: "Roboto", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #fcfcfc;
  --primary-color: #4756df;
  --secondary-color: #ff7235;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 1.7rem;
  --transition: 0.3s;
}
/* Variables end */

html {
  scroll-behavior: smooth;
}

/* CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 2px solid red; */
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

body {
  font-family: var(--font-family);
}

section {
  max-width: 1100px;
  margin: auto; 
}

/* CSS Resets end */

/* Navbar */
nav {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--bg-color);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

nav h1 {
  color: var(--primary-color);
}

nav a {
  color: var(--primary-color);
  transition: var(--transition);
}
nav a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

nav ul {
  display: flex;
  gap: 1.9rem;
}

nav ul li {
  font-weight: var(--bold-font);
}

.burger-menu {
  color: var(--primary-color);
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}
/* Navbar ends */

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 68.75rem;
  margin: auto;
}

.hero img {
  height: 37.5rem;
  width: 37.5rem;
}

.bio {
  width: 25rem;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.bio h1 {
  margin-bottom: var(--bottom-margin);
}

.bio p {
  line-height: var(--line-height);
  padding: 0.3rem 0;
}
/* Hero section ends */

/* More about */
.more-about {
  background-color: var(--bg-color);
  padding: 1rem 6rem;
}

.more-about h2 {
  margin-bottom: var(--bottom-margin);
  text-align: center;
}

.more-about p {
  line-height: var(--line-height);
  padding: 0.4rem;
}
/* More about ends */

/* Skills section */
.skills {
  max-width: 68.75rem;
  margin: auto;
  text-align: center;
  margin-top: 2.5rem;
}

.skill-header {
  margin-bottom: 1rem;
}

.skills-wrapper img {
  padding: 1.25rem;
}

.icon {
  width: 11.875rem;
  height: 11.25rem;
}
/* Skills section ends */

/* Projects section */
.projects {
  background-color: var(--bg-color);
  padding: 32px 0;
  margin-top: 2rem;
}

.project-pic {
  width: 100%;
  height: auto;
  max-height: 150px; /* Ajuste la taille des images */
  object-fit: contain; /* Garde l'image bien proportionnée */
}

.projects-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.projects-title {
  text-align: center;
  margin-bottom: 1rem;
}

.project-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  width: 300px; /* Largeur uniforme */
  padding: 20px;
  min-height: 400px; /* Augmenter la hauteur minimale pour équilibrer */
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);

}

.project-container p {
  padding: 0.4rem;
}

.project-title {
  margin-bottom: var(--bottom-margin);
}

.project-details {
  flex-grow: 1; /* Permet au texte de s'étendre sans déséquilibrer la hauteur */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centre le contenu */
}

/* Projects section ends */

.entreprise {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0;
  margin-top: 2rem;
}

.entreprise-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: auto;
  overflow: hidden; /* Empêche tout débordement */
}

.entreprise-img {
  width: auto; /* Garde la largeur d'origine */
  height: auto; /* Ajuste la hauteur automatiquement */
  max-width: 1000px; /* Ajuste la taille max */
  max-height: 600px; /* Limite la hauteur pour éviter les déformations */
  border-radius: 8px; /* Coins légèrement arrondis */
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.entreprise-pic {
  width: 60%;
  height: 60%;
}

.entreprise-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.entreprise-title {
  text-align: center;
  margin-bottom: 1rem;
  font-style: var(--bolder-font);
}

.entreprise-container {
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
  height: 100%;
}

.entreprise-container p {
  padding: 0.4rem;
}

.entreprise-title {
  margin-bottom: var(--bottom-margin);
}

.entreprise-details {
  margin-bottom: var(--bottom-margin);
  text-align: center;
}
/* Contacts section */
.contact {
  margin-top: 2rem;
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--bottom-margin-2);
}

.contact-form-container {
  max-width: 40.75rem;
  margin: 0 auto;
  padding: 0.938rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
}

.contact-form-container label {
  line-height: 2.7em;
  font-weight: var(--bold-font);
  color: var(--primary-color);
}

.contact-form-container textarea {
  min-height: 6.25rem;
  font-size: 14px;
}

.contact-form-container .input-field {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  font-size: 0.875rem;
  outline: none;
}

.input-field::placeholder {
  padding: 0.5rem;
  color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--bold-font);
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
}
/* Contacts section ends */

/* Social buttons */
.socials {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 1%;
  bottom: 50%;
}

.socicon {
  width: 2rem;
  height: 2rem;
}
/* Social button ends */

/* Scroll to top button */
.scroll-up {
  position: fixed;
  right: 0.5%;
  bottom: 3%;
  cursor: pointer;
}

.up-arrow {
  width: 3rem;
  height: 3rem;
}
/* Scroll to top button ends */

/* Footer section */
footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}
/* Footer section ends */

/* General (utilities) */
.icon-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
  padding: 20px;
  margin: 10px;
}

.project-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  margin: 10px;
}

/* Media queries for responsiveness */
@media screen and (max-width: 720px) {
  nav {
    padding: 1.5rem 1rem;
  }
  nav ul {
    position: fixed;
    background-color: var(--bg-color);
    flex-direction: column;
    top: 86px;
    left: 10%;
    width: 80%;
    text-align: center;
    transform: translateX(120%);
    transition: transform 0.5s ease-in;
  }

  nav ul li {
    margin: 8px;
  }

  .burger-menu {
    display: block;
  }

  nav ul.show {
    transform: translateX(0);
  }

  .hero {
    margin-top: -4rem;
    flex-direction: column;
    gap: 0;
  }

  .hero img {
    height: 37.5rem;
    width: 30rem;
  }

  .bio {
    margin-top: -7rem;
    width: 20.5rem;
  }

  .more-about {
    margin-top: 2rem;
    padding: 1rem 3.5rem;
  }

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

  .more-about p {
    text-align: justify;
  }

  .icon {
    width: 5.875rem;
    height: 5.25rem;
  }

  .projects-container {
    flex-direction: column;
  }

  .project-container {
    width: 20.875rem;
  }

  .contact-form-container {
    max-width: 23.75rem;
  }
}

@media screen and (max-width: 420px) {
  .hero img {
    height: 37.5rem;
    width: 23rem;
  }

  .bio {
    width: 18.3rem;
  }

  .project-container {
    width: 17.875rem;
  }

  .contact-form-container {
    max-width: 17.75rem;
  }

  .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto; /* Centrage horizontal */
}

.image-container img {
    width: 100px; /* Taille réduite */
    height: auto; /* Garde les proportions */
    border-radius: 50%; /* Arrondir les bords */
    transition: transform 0.3s ease; /* Effet au survol */
    cursor: pointer; /* Indique que l'image est cliquable */
}

.image-container img:hover {
    transform: scale(1.1); /* Zoom léger au survol */
}
.CV1 {
  text-align: center; /* Centre tout le texte horizontalement */
  margin: 0 auto; /* Centre la section si elle a une largeur définie */
  padding: 20px; /* Ajoute un peu d'espace intérieur */
  font-family: Arial, sans-serif; /* Police pour un rendu clair */
}

.CV1 h2, #CV h3 {
  margin-bottom: 10px; /* Espace entre les titres */
  font-weight: bold; /* Renforce les titres */
}

.CV1 p {
  margin-bottom: 20px; /* Espace entre les paragraphes */
  line-height: 1.6; /* Améliore la lisibilité */
}

/* Conteneur principal pour les blocs */
.Pres {
  display: inline-block; /* Permet de placer les éléments côte à côte */
  width: 45%; /* Largeur de chaque bloc */
  vertical-align: top; /* Aligne les blocs en haut */
  margin-right: 5%; /* Espace entre les blocs */
  box-sizing: border-box; /* Inclut les bordures et le padding dans la largeur totale */
}

.Pres:last-child {
  margin-right: 0; /* Supprime la marge droite du dernier bloc */
}

/* Titre pour les sections */
.Pres .boite, .montaf {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Texte des sections */
.Pres .boite p, .mon-taf p {
  font-size: 1rem;
  line-height: 1.5;
}

/* CV section */
.CV {
  background-color: var(--bg-color);
  padding: 32px 0;
  margin-top: 2rem;
}

.cv-pic {
  width: 60%;
  height: 60%;
}

.cv-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-title {
  text-align: center;
  margin-bottom: 1rem;
}

.cv-container {
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
  height: 100%;
}

.cv-container p {
  padding: 0.4rem;
}

.cv-title {
  margin-bottom: var(--bottom-margin);
}

.cv-details {
  margin-bottom: var(--bottom-margin);
}

/* CV section ends */


.veille {
  background-color: var(--bg-color);
  padding: 40px 0;
  margin-top: 2rem;
  text-align: center;
}

.veille-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.veille-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.veille-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.veille-card:hover {
  transform: scale(1.05);
}

.veille-card h3 {
  margin-bottom: 10px;
}

.veille-card p {
  font-size: 0.9rem;
  color: #555;
}

.veille-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  transition: background 0.3s;
}

.veille-link:hover {
  background-color: var(--secondary-color);
}



}