body {
      font-family: "Segoe UI", Arial, sans-serif;
      margin: 0;
      background: #f4f6f9;
      color: #2c3e50;
}

.flash{
  
  margin-bottom: 15px;
  padding: 10px 15px;
}

.flash-green {
  border-left: 6px solid #2ecc71;
  background-color: #ddffdd;
}

.flash-red {
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
}

.navbar h1 {
  margin: 0;
  font-size: 1.5rem;

}

.navbar h1 a {
  color: white;
  text-decoration: none;
}

.navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #2c3e50;
        padding: 1rem 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.navbar a:hover {
    background-color: #2c3e50;
    color: #fff;
    
}

.menu {
    display: flex;
}

.menu a {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.description {
  background: #ecf0f1;
  border-left: 4px solid #27ae60;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 6px;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.proposition {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.proposition h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #2c3e50;
}

.proposition p {
  font-size: 1rem;
  margin: 1rem 0;
}

.bar {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.5rem;
  background: #ddd;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
}
.pour {
  background: #27ae60; /* vert */
  display: flex;
  align-items: center;
  justify-content: center;
}
.contre {
  background: #c0392b; /* rouge */
  display: flex;
  align-items: center;
  justify-content: center;
}
a {
  color: inherit;
  text-decoration: none;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #34495e;
}

.comments {
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.comment {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.comment strong {
  color: #2c3e50;
}

.comment-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.comment-form button {
  background: #1e8449;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.comment-form button:hover {
  background: #1a252f;
}

input[type="text"], textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
}

textarea {
  box-sizing: border-box;
  resize: vertical;
  min-height: 120px;
}
.btn{
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.proposition-btn {
  background: #2e6297; /* bleu institutionnel */
}
.proposition-btn:hover {
  background: #254d75; /* bleu institutionnel */
}


.submit-btn {
  background: #3ea268; /* vert institutionnel */
}

.submit-btn:hover {
  background: #27ae60; /* vert plus foncé */
}

.vote-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.vote-buttons button {
  flex: 1;
  text-align: center;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease;
  outline: none;
  border: none;
}

.vote-yes-btn {
  background: #27ae60; /* vert */
}

.vote-yes-btn:hover {
  background: #1e8449; /* vert foncé */
}

.vote-no-btn {
  background: #c0392b; /* rouge */
}

.vote-no-btn:hover {
  background: #922b21; /* rouge foncé */
}

.demotis {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demotis-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
}

.demotis-actions {
  display: flex;
  gap: 1rem;
}

.demotis-parametre-btn {
  background: #2980b9; /* bleu */
}

.demotis-administrer-btn {
  background: #c0392b; /* vert */
}


.demotis-lien-btn {
  background: #555c63  ; /* violet */
}

.demotis-create-btn {
  background: #3ea268; /* bleu */
}

.login-container-center {

  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

.login-container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  width: 300px;
}

.login-btn {
  display: block;
  width: 100%;
  max-width: 100%;        /* empêche de dépasser */
  box-sizing: border-box; /* inclut padding et bordure */
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease;
}

.google-btn-connect {
  background: #db4437; /* rouge Google */
}

.google-btn-connect:hover {
  background: #a33327;
}

.facebook-btn-connect {
  background: #3b5998; /* bleu Facebook */
}

.facebook-btn-connect:hover {
  background: #2d4373;
}

.azure-btn-connect {
  background: #0078d4; /* bleu Azure/Outlook */
}
.azure-btn-connect:hover {
  background: #005a9e;
}

/* Fil d'Ariane */
.breadcrumb {
  background: #ecf0f1;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #ddd;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.breadcrumb li {
  margin-right: 0.5rem;
  color: #2c3e50;
}
.breadcrumb li+li:before {
  content: "›";
  margin-right: 0.5rem;
  color: #7f8c8d;
}

.breadcrumb a {
  text-decoration: none;
  color: #2980b9;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .current {
  font-weight: bold;
  color: #2c3e50;
}

/* Style pour le sélecteur de tri */
.sort-select {
  margin-bottom: 1.5rem;
}
.sort-select label {
  font-weight: bold;
  margin-right: 0.5rem;
  color: #34495e;
}
.sort-select select {
  padding: 0.5rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  cursor: pointer;
}
  /* Boîte du formulaire */
  .overlay {
    display: none; /* caché par défaut */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* gris semi-transparent */
    z-index: 1000;
  }

  .modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    width: 300px;
    z-index: 1001;
  }

@media (max-width: 768px) {
        .menu {
            display: none;
            flex-direction: column;
            width: 100%;
            background-color: #2c3e50;
            position: absolute;
            top: 60px;
            left: 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: max-height 0.3s ease-out;
            overflow: hidden;
            max-height: 0;
        }

        .menu a {
            text-align: center;
            padding: 15px;
            border-top: 1px solid #ddd;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .menu.active {
            display: flex;
            max-height: 300px; /* Ajustez selon le contenu */
        }

        .menu-toggle {
            display: block;
        }

        .demotis {
            flex-direction: column;
        }

        .demotis-title {
            margin-bottom: 1rem;
        }
    }