/* =========================================================
   STYLE GLOBAL BFP
   ========================================================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9fb;
  color: #333;
}

/* ===== HEADER GÉNÉRAL ===== */
header {
  background-color: #1e3a8a;
  color: white;
  padding: 20px;
  text-align: center;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
}

nav a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  background-color: #1e3a8a;
  color: white;
  padding: 20px;
  text-align: center;
}

footer nav a {
  color: #fff;
  margin: 0 10px;
  font-weight: 600;
  text-decoration: none;
}

footer nav a:hover { text-decoration: underline; }

/* =========================================================
   BFP CONNECT
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1e3a8a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.logo-container img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.main-nav a:hover { text-decoration: underline; }

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  display: none;
  cursor: pointer;
}

/* PAGE */
.page-title {
  text-align: center;
  color: #1e3a8a;
  margin-top: 100px;
}

/* OFFRES */
.offre {
  background: white;
  padding: 20px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  line-height: 1.5;
}

.offre h2 { color: #1e3a8a; margin-top: 0; }

/* Description enrichie */
.description {
  background: #f8f9ff;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.6;
  text-align: justify;
  margin-top: 15px;
}

.description h3 {
  color: #1e3a8a;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.description ul {
  margin: 10px 0 10px 25px;
  list-style-type: disc;
}

.description li { margin-bottom: 5px; }

.description p { margin-bottom: 10px; }

.candidatures {
  background: #eaf0ff;
  padding: 15px;
  margin-top: 20px;
  border-radius: 8px;
}

.candidat { margin-bottom: 10px; }

.statut-select {
  padding: 4px 6px;
  border-radius: 4px;
}

.small-link {
  margin-left: 10px;
  font-size: 0.9rem;
}

.btn-depublier {
  background: #d40000;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
.btn-depublier:hover { background: #aa0000; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    flex-direction: column;
    background: #1e3a8a;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
  }

  .main-nav.open { display: flex; }

  .offre { margin: 15px; padding: 15px; }

  .page-title {
    font-size: 1.3rem;
    margin-top: 80px;
  }
}
/* =========================================================
   RESPONSIVE GLOBAL — AMÉLIORATIONS
   ========================================================= */

/* Petits écrans (smartphones) */
@media (max-width: 768px) {

  body {
    font-size: 16px;
    padding: 0 10px;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 15px;
  }

  .logo-container img {
    height: 32px;
  }

  .main-nav {
    width: 100%;
    background: #1e3a8a;
    flex-direction: column;
    position: absolute;
    top: 55px;
    left: 0;
    display: none;
    padding: 10px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .page-title {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 90px; /* évite chevauchement du header */
  }

  .offre {
    margin: 15px auto;
    padding: 15px;
    box-shadow: none;
    border: 1px solid #eee;
    width: 100%;
  }

  .offre h2, .offre h3 {
    font-size: 1.1rem;
  }

  .description {
    font-size: 0.95rem;
    padding: 15px;
  }

  .btn-depublier,
  .btn,
  .btn.voir {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
  }

  .candidatures {
    padding: 10px;
    font-size: 0.9rem;
  }

  footer {
    padding: 15px;
    font-size: 0.9rem;
  }
}

/* Tablettes (768–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .offre {
    max-width: 90%;
    padding: 18px;
  }

  .page-title {
    margin-top: 90px;
    font-size: 1.5rem;
  }

  .main-nav {
    gap: 10px;
  }

  .description {
    font-size: 1rem;
  }
}
/* =========================================================
   ALIGNEMENT DES BLOCS ACCUEIL
   ========================================================= */

.espace-container, /* ton conteneur des 3 blocs */
.grid-espaces,     /* au cas où le nom diffère */
.section-espaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centre horizontalement */
  gap: 30px; /* espace entre les cartes */
  text-align: center;
  margin: 40px auto;
  max-width: 1100px;
}

.espace-card, .espace, .bloc-espace {
  flex: 1 1 280px; /* largeur mini 280px */
  max-width: 320px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}
