body {
  font-family: 'Inter', sans-serif;
  background: #F5F7FA;
  color: #1E1E1E;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 0;
}

header {
  background-color: #4B80AA;
  color: white;
  padding: 1rem 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 1rem;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  background-color: #E6EFF6;
  text-align: center;
  padding: 4rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta {
  display: inline-block;
  background: #4B80AA;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta:hover {
  background: #3a6482;
}

.services .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex: 1 1 30%;
}

.card h4 {
  margin-top: 0;
  color: #4B80AA;
}

.about {
  background: white;
  padding: 4rem 0;
  color: #1E1E1E;
}

.about h3 {
  text-align: center;
  color: #4B80AA;
  margin-bottom: 2rem;
}

.about p {
  max-width: 800px;
  margin: 1rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact {
  background: #E6EFF6;
  padding: 4rem 0;
  text-align: center;
}

.contact h3 {
  margin-bottom: 1rem;
  color: #4B80AA;
  font-size: 1.8rem;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 600px;
}

.contact-list li {
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

.contact-list a {
  color: #4B80AA;
  text-decoration: none;
  font-weight: bold;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.95rem;
  color: #555;
  margin-top: 2rem;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background: #4B80AA;
  color: white;
}

.logo-footer {
  height: 30px;
  display: block;
  margin: 0 auto 0.5rem;
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .header-flex {
    flex-direction: column;
    text-align: center;
  }

  .services .grid {
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
  }

  .contact-list li,
  .about p {
    padding: 0 1rem;
  }

  .site-title {
    font-size: 1rem;
    text-align: center;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Hauteur minimale pour éviter les sauts */
.navbar {
  min-height: 60px;
  align-items: center;
}

/* Centrer verticalement le bouton */
.navbar-toggler {
  align-self: center;
  margin-left: auto;
  padding: 0.3rem 0.6rem;
}

/* Assure l'alignement horizontal du menu */
.navbar-collapse {
  align-items: center;
  justify-content: flex-end;
}
.projets {
  background: #ffffff;
  padding: 4rem 0;
}

.projets h3 {
  text-align: center;
  color: #4B80AA;
  margin-bottom: 2rem;
}

.project-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex: 1 1 45%;
}

.project-card h4 {
  margin-top: 0;
  color: #4B80AA;
}

.project-card .techs {
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.btn-small {
  display: inline-block;
  margin-top: 1rem;
  background: #4B80AA;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.projets .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.skills {
  background: #F5F7FA;
  padding: 4rem 0;
  text-align: center;
}

.skills h3 {
  color: #4B80AA;
  margin-bottom: 2rem;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}

.skills-list li {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Apparence initiale pour les éléments à animer */
.card,
.project-card,
.skills-list li,
.about p,
.contact-list li,
.hero h2,
.hero p,
.cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content img {
  display: block; 
  margin-left: auto;
  margin-right: auto;
}

/* Agrandir le logo */
.navbar-brand img {
  height: 50px;      /* augmente la hauteur du logo */
  margin-right: 10px;
}

/* Agrandir la police du nom du site */
.navbar-brand span {
  font-size: 1.5rem;  /* valeur ajustable selon ton goût */
  font-weight: 600;
}

/* Agrandir les liens de la navbar */
.navbar-nav .nav-link {
  font-size: 1.5rem;  /* plus grand que le défaut */
  padding: 0.5rem 1rem;
}
