.index_css {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background-color: #f5f5f5;
  min-height: 500px;
}

.index_css-image {
  flex: 1;
  text-align: center;
}

.index_css-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.index_css-content {
  flex: 1;
  text-align: center;
}

.index_css-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
}

.btn-index {
  display: inline-block;
  padding: 14px 40px;
  background-color: #66cc33;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-index:hover {
  background-color: #55bb22;
}

@media (max-width: 768px) {
  .index_css {
    flex-direction: column;
    padding: 40px 20px;
  }

  .index_css-content h1 {
    font-size: 24px;
  }

  .compte-form-row {
    flex-direction: column;
  }
  .ajout-annonce {
    margin: 20px;
    padding: 20px;
  }

  .annonce-form .row {
    flex-direction: column;
  }
}

.compte {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.compte h2 {
  margin-bottom: 5px;
  color: #333;
}

.compte > p {
  color: #666;
  margin-bottom: 25px;
}

.compte-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compte-form-row {
  display: flex;
  gap: 16px;
}

.compte-form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}

.compte-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.compte-form-group input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.compte-form-group input:focus {
  border-color: #66cc33;
  outline: none;
}

.compte-form-group input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.compte-form-group small {
  font-size: 11px;
  color: #aaa;
}

.compte-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.compte-btn-sauvegarder {
  padding: 10px 28px;
  background-color: #66cc33;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.compte-btn-sauvegarder:hover {
  background-color: #55bb22;
}

.compte-btn-deconnexion {
  padding: 10px 28px;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.compte-btn-deconnexion:hover {
  background-color: #cc0000;
}

.compte-alert-error {
  background: #fff0f0;
  border-left: 4px solid #ff4444;
  padding: 12px 16px;
  border-radius: 8px;
  color: #cc0000;
  margin-bottom: 10px;
}

.compte-alert-success {
  background: #f0fff0;
  border-left: 4px solid #66cc33;
  padding: 12px 16px;
  border-radius: 8px;
  color: #339900;
  margin-bottom: 10px;
}

.ajout-annonce {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ajout-annonce h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.annonce-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.annonce-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.annonce-row {
    display: flex;
    gap: 16px;
}

.annonce-field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.annonce-field label small {
    font-weight: 400;
    color: #aaa;
    margin-left: 6px;
}

.annonce-field input[type="text"],
.annonce-field input[type="number"],
.annonce-field textarea,
.annonce-field select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.annonce-field input:focus,
.annonce-field textarea:focus,
.annonce-field select:focus {
    border-color: #66cc33;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 204, 51, 0.1);
}

.annonce-field textarea {
    resize: vertical;
    min-height: 120px;
}

.annonce-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s;
}

.annonce-field input[type="file"]:hover {
    border-color: #66cc33;
    background: #f5fff0;
}

.annonce-btn {
    padding: 12px 32px;
    background-color: #66cc33;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
    margin-top: 8px;
}

.annonce-btn:hover {
    background-color: #55bb22;
}

.annonce-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.annonce-alert-success {
    background: #f0fff0;
    border-left: 4px solid #66cc33;
    color: #339900;
}

.annonce-alert-error {
    background: #fff0f0;
    border-left: 4px solid #ff4444;
    color: #cc0000;
}

.annonce-alert-error div {
    margin-bottom: 4px;
}