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

/* 🔵 Menu de navigation */
.top-nav {
  background-color: #004080;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.top-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ✨ Effet de survol stylé */
.top-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffcc00;
}

/* ✅ Lien actif reste blanc */
.top-nav ul li a.active {
  color: white !important;
  background-color: transparent !important;
  border-bottom: 2px solid #ffcc00;
}

.logo img {
  height: 50px;
}

/* 🔐 Lien Admin stylisé */
.admin-link a {
  background-color: #ffcc00;
  color: #004080;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1;
}

.admin-link a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #004080;
  transition: left 0.4s ease;
  z-index: 0;
}

.admin-link a:hover::after {
  left: 0;
}

.admin-link a:hover {
  color: white;
}

/* 🖼️ Bannière */
.ajpc-banner {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.ajpc-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.ajpc-slogan {
  position: absolute;
  bottom: 20px;
  left: 30px;
  background-color: rgba(0, 64, 128, 0.7);
  color: white;
  padding: 20px;
  border-radius: 8px;
}

.ajpc-slogan h1 {
  margin: 0;
  font-size: 24px;
}

.ajpc-slogan p {
  margin-top: 8px;
  font-style: italic;
  font-size: 16px;
}

/* 📄 Contenu principal */
main {
  padding: 40px;
  text-align: center;
}

main h2 {
  color: #004080;
}


.footer-contact {
  margin-bottom: 15px;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-contact a {
  color: #004080;
  text-decoration: none;
  font-weight: bold;
}
.footer-contact a:hover {
  text-decoration: underline;
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .ajpc-slogan h1 {
    font-size: 18px;
  }

  .ajpc-slogan p {
    font-size: 14px;
  }

  main {
    padding: 20px;
  }
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu li {
  margin-right: 20px;
}

.menu-search form {
  display: flex;
}

.menu-search input {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.menu-search button {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #004080;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.menu-search button:hover {
  background-color: #ffcc00;
  color: #004080;
}

@media screen and (max-width: 768px) {
  header .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .menu-search,
  .admin-btn {
    margin-top: 10px;
  }

  .social-links {
    margin-top: 20px;
    text-align: left;
  }
}
.msg a.home-btn {
  background: green;
  color: white;
}
.msg a.home-btn:hover {
  background: #00cc99;
}
.btn-home {
  background-color: #006600;
  color: white;
  border-radius: 4px;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
}
.btn-home:hover {
  background-color: #00aa55;
  color: #fff;
}
.form-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
}

.form-container h2 {
  text-align: center;
  color: #004080;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #004080;
  outline: none;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.form-buttons button,
.form-buttons a {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-buttons button {
  background-color: #004080;
  color: white;
}

.form-buttons button:hover {
  background-color: #003060;
}

.form-buttons a {
  background-color: #ddd;
  color: #333;
}

.form-buttons a:hover {
  background-color: #ccc;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 40px;
}

.form-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: auto;
}

h2 {
  color: #004080;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #004080;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #003060;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.form-buttons a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}
.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode main h2,
.dark-mode .ajpc-slogan h1,
.dark-mode .ajpc-slogan p {
  color: #ffffff;
}

.dark-mode footer {
  background-color: #1e1e1e;
  color: #cccccc;
}

.dark-mode .top-nav {
  background-color: #000000;
}

.dark-mode .top-nav ul li a {
  color: #f0f0f0;
}

.dark-mode .top-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffcc00;
}

#ajpcChatWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#ajpcChatWidget.hidden {
  transform: scale(0);
  opacity: 0;
}
#ajpcChatHeader {
  background: #004080;
  color: white;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#ajpcChatHeader img {
  width: 30px;
  height: 30px;
}
#ajpcToggleBtn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
#ajpcChatMessages {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
}
#ajpcChatInput {
  display: flex;
  border-top: 1px solid #ccc;
}
#ajpcChatInput input {
  flex: 1;
  padding: 8px;
  border: none;
  border-bottom-left-radius: 10px;
}
#ajpcChatInput button {
  background: #004080;
  color: white;
  border: none;
  padding: 8px 12px;
  border-bottom-right-radius: 10px;
  font-weight: bold;
}

#chatbot {
  background-color: #222 !important;
  color: #fff !important;
}

#chatbot input,
#chatbot textarea {
  background-color: #333 !important;
  color: #fff !important;
}

#chatbot .message {
  color: #fff !important;
}

@media (prefers-color-scheme: dark) {
  #chatbot {
    background-color: #222;
    color: #fff;
  }
}

.actualites-container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.actu-card img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 6px;
}

.actu-image-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.image-large {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
