@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
  margin: 0;
  padding: 80px 0 0 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  background-color: #d6eaf8;
}

.centered-text {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 35vh;
  text-align: center;
  background-color: #f0f4ff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.text-content h1 {
  font-size: 3rem;
}

.text-content p {
  font-size: 1.5rem;
}

/* NavBar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0097d7;
  z-index: 9999;
}

.logo {
  padding: 0 5rem;
}

.logo .logo-heading {
  color: #ffffff;
}

.menu {
  padding: 0 5rem;
}

.menu .menu-list {
  display: flex;
  list-style: none;
}

.menu-list .menu-list-items {
  padding: 0.5rem 1rem;
}

.links:hover {
  border-bottom: 2px solid #fff;
}

.links {
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  padding: 5px;
  text-decoration: none;
  color: #ffffff;
}

.heading-span {
  font-weight: bolder;
}

.text-center {
  text-align: center;
}

.small-para {
  font-size: 14px;
  color: #fff;
}

.white-text {
  color: #fff;
}

.blue-text {
  color: #363D73;
}

.button {
  color: #FFFFFF;
  background-color: #0097d7;
  border-radius: 5px;
  padding: 18px 36px;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #0097d7;
  border: 2px solid transparent; /* Ajout d'une bordure transparente */
  transition: all 0.4s ease-out;
  text-decoration: none;
}

.right:hover {
  box-shadow: inset 400px 0 0 0 rgb(0, 100, 255);
  border: 2px solid #0064ff; /* Bordure visible au hover (même couleur que le remplissage) */
}


/* CV */
#cv {
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.cv-header h1 {
  font-size: 2.5rem;
  color: #333;
}

.cv-header p {
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

.cv-objective, .cv-experience, .cv-education, .cv-skills, .cv-diplome {
  margin-bottom: 30px;
}

.cv-objective h2, .cv-experience h2, .cv-education h2, .cv-skills h2, .cv-diplome h2 {
  font-size: 1.8rem;
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.job, .education, .diplome {
  margin-bottom: 15px;
}

ul {
  list-style: none;
  padding-left: 0;
}

h3 {
  font-weight: normal;
}

/* Projets */

.section-projets {
  padding: 50px 20px;
  text-align: center;
}

.projets-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
}

.carte-projet {
  min-height: 300px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease;
  text-align: center;
}

.carte-projet:hover {
  transform: translateY(-5px);
}

.carte-projet h3 {
  margin-top: 0;
  color: #0097d7;
}

.carte-projet p {
  color: #333;
  font-size: 0.95em;
}

.carte-projet a {
  display: flex-start;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #0097d7;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid #0097d7;
  transition: background-color 0.3s, color 0.3s;
}

.carte-projet a:hover {
  background-color: white;
  color: #0097d7;
  border: 2px solid #0097d7;
}

.carte-projet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0;
}

.carte-projet-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 20px;
  align-items: center;
  text-align: center;
}

.carte-projet a {
  margin-top: auto;
  align-self: center;
}

.carte-projet-content img {
  width: auto;
  height: 100px;
}

h1 {
  font-size: 2em;
  color: #0056b3;
}

h4 {
  font-size: 1.5em;
  text-align: center;
}

.detailed-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 40px;
  background-color: #f0f4ff;
  padding: 20px;
  border-left: 4px solid #0056b3;
  border-radius: 5px;
}

/* Images */

.image-dropdown summary {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin: 20px 0;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border-radius: 5px;
  width: fit-content;
}

.image-dropdown[open] summary {
  border-bottom: 2px solid #ccc;
}

.image-dropdown {
  text-align: center;
}

.extra-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.caption {
  font-size: 1rem;
  color: #333;
  font-style: italic;
  text-align: center;
}

.container {
  display: flex;
  justify-content: center; /* Centrer horizontalement */
  align-items: center; /* Centrer verticalement */
  flex-wrap: wrap; /* Si nécessaire, faire un retour à la ligne */
  gap: 20px; /* Espacement entre les images */
}

.image-wrapper {
  text-align: center;
  position: relative;
  max-width: 40%;
  max-height: 40%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 40px;
}

.image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}


/* Section Compétences */
.competences {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 40px;
  background-color: #f0f4ff;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  border-left: 4px solid #0056b3;
  font-weight: bold;
  margin-bottom: 0;
}

.competence_active {
  background-color: #cce5ff;
  color: #004085;
  display: inline-block;
  margin: 8px 12px;
  padding: 10px 12px;
}

.competence_inactive {
  background-color: #e2e3e5;
  color: #6c757d;
  display: inline-block;
  margin: 8px 12px;
  padding: 10px 12px;
}

.competence_active:hover {
  background-color: #b3d7ff;
  box-shadow: 0 4px 12px rgba(0, 80, 200, 0.2);
  transform: translateY(-2px);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: default;
}

.competence_inactive:hover {
  background-color: #d6d8db;
  box-shadow: 0 4px 12px rgba(100, 100, 100, 0.15);
  transform: translateY(-2px);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: default;
}

/* Veille Techno */
.h1{
  text-align: center;
  font-size: 1.5rem;
  color: #0056b3;
  margin-bottom: 15px;
}

.cartes-sites {
  padding: 50px 20px;
  background-color: #f0f8ff;
  text-align: center;
}

.cartes-sites h1 {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 40px;
}

.cartes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
}

.carte-site {
  flex: 1 1 calc(33.333% - 40px);
  box-sizing: border-box;
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.2s ease;
  max-width: calc(33.333% - 40px);
}

.carte-site:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.carte-site h6 {
  font-size: 18px;
  color: #0097d7;
  margin-bottom: 15px;
}

.carte-site a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0097d7;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.carte-site a:hover {
  background-color: white;
  color: #0097d7;
  border: 2px solid #0097d7;
}

/* Page Compétences */
.section-competences {
  padding: 50px 20px;
  text-align: center;
}

.carte-competence {
  min-height: 300px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease;
  text-align: center;
}

.carte-competence:hover {
  transform: translateY(-5px);
}

.carte-competence h3 {
  margin-top: 0;
  color: #0097d7;
}

.carte-competence p {
  color: #333;
  font-size: 0.95em;
}

.carte-competence a {
  display: flex-start;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #0097d7;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid #0097d7;
  transition: background-color 0.3s, color 0.3s;
}

.carte-competence a:hover {
  background-color: white;
  color: #0097d7;
  border: 2px solid #0097d7;
}

.carte-competence {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.carte-competence-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  padding: 20px;
  align-items: center;
  text-align: center;
}

.carte-competence a {
  margin-top: auto;
  align-self: center;
}

.carte-competence-content a {
  display: inline-block;
  width: 200px;
  margin: 5px 0;
  padding: 8px 12px;
  text-decoration: none;
}

/* --- Formulaire de contact --- */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background-color: #007BFF;
  color: white;
  border: 2px solid white;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.7s, color 0.7s;
}

.contact-form button:hover {
  background-color: white;
  color: #0097d7;
  border: 2px solid #0097d7;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-form {
    margin: 20px;
    padding: 15px;
  }
}