body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #222;
}

header {
  background-color: #990000;
  color: white;
  padding: 1em 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header .branding {
  display: flex;
  align-items: center;
  gap: 1em;
  justify-content: center;
  margin-bottom: 1em;
}

header img {
  height: 60px;
}

header h1 {
  margin: 0;
  font-size: 1.5em;
}

header nav {
  display: flex;
  gap: 1.5em;
  font-weight: bold;
  font-size: 0.95em;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffaaaa;
}

.hero {
 
  padding: 5em 1em;
  text-align: center;
  color: white;
  background-color: #444;
}

.cta {
  display: inline-block;
  margin-top: 1em;
  padding: 0.75em 1.5em;
  background-color: #ff4444;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

section {
  padding: 3em 1em;
  max-width: 900px;
  margin: 0 auto;
}

.photo-placeholder {
  height: 200px;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  background-color: transparent;
  border-radius: 8px;
  object-fit: cover;
}

.gallery {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}

input,
textarea {
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #990000;
  color: white;
  padding: 0.75em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #cc0000;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}

/* Partenaires - logos gallery */
.logos-gallery {
  display: flex;
  justify-content: center;
  align-items: center; /* aligne verticalement les items */
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1em 0;
}

.logos-gallery figure {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre l’image et la légende */
  max-width: 180px;
  margin: 0;
  flex-shrink: 0;
  text-align: center;
}

.logos-gallery img.logo {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 100px; /* pour homogénéiser la hauteur */
}

.logos-gallery figcaption {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* Largeurs spécifiques logos si besoin */
.logos-gallery .progis {
  width: 140px;
}

.logos-gallery .lr {
  width: 160px;
}

/* Texte sous la galerie partenaires */
.partner-text {
  text-align: center;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 1em;
}

/* Responsive - mobile */
@media (max-width: 600px) {
  .logos-gallery {
    flex-direction: column;
    gap: 2rem;
  }
  .logos-gallery figure {
    max-width: 80vw;
  }
  .logos-gallery img.logo {
    max-height: none;
    width: 100%;
  }
  .partner-text {
    font-size: 0.95em;
  }
}

/* Nouvelle partie partenaire pour logos côte à côte */
.partner-logos {
  display: flex;
  justify-content: flex-start; /* aligné à gauche */
  align-items: center;
  gap: 3rem;
  flex-wrap: nowrap; /* logos côte à côte sans retour à la ligne */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.partner-logos figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 180px;
  margin: 0;
  text-align: center;
}

.partner-logo {
  max-width: 140px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.partner-logos figure:nth-child(2) .partner-logo {
  max-width: 160px;
}

.partner-logos figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5rem;
  font-weight: 600;
}

.partner-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1em;
  color: #222;
  padding: 0 1em;
  line-height: 1.5;
  text-align: center;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  .partner-logos {
    flex-direction: column; /* empilement vertical sur mobile */
    gap: 2rem;
    flex-wrap: nowrap;
    justify-content: center; /* centrer sur mobile */
  }
  .partner-logo {
    max-width: 80vw;
  }
}






.social img {
  width: 30px; 
  height: 30px;
}

.social-bar {
  display: flex;
  gap: 15px; 
  justify-content: center;
}
