
body {
    background:  #003366;
}

.conteneur-dashboard {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gauche, .droite {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.gauche h2, .droite h2 {
    font-family: 'Playfair Display', serif;
    color: #212529;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #F77F00;
}

.message-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #003366;
    transition: transform 0.2s;
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

.message-header strong {
    color: #212529;
}

.message-sujet {
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
}

.message-actions {
    text-align: right;
}

.btn-action {
    display: inline-block;
    padding: 5px 12px;
    background: #003366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85em;
    transition: background 0.3s;
}

.btn-action:hover {
    background:  #003366;
}

.alerte-erreur {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #f5c6cb;
}

.alerte-succes {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #c3e6cb;
}

.formulaire-message {
    max-width: 700px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.champ {
    margin-bottom: 20px;
}

.champ label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.champ select, .champ input, .champ textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border 0.3s;
    box-sizing: border-box;
}

.champ select:focus, .champ input:focus, .champ textarea:focus {
    border-color: #F77F00;
    outline: none;
}

.bouton-action-orange {
    background: #003366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s;
}

.bouton-action-orange:hover {
    background:  #003366;
}


.conversation {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.message-principal, .reponse {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.message-principal {
    background: #fff8f0;
    border-left: 4px solid #F77F00;
}

.reponse {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    margin-left: 30px;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #6c757d;
}

.message-contenu {
    line-height: 1.6;
}

.fichiers-joints {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e9ecef;
}

.fichier-item {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.fichier-item a {
    color: #F77F00;
    text-decoration: none;
    margin-left: 5px;
}

.form-reponse {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    color: #212529;
    text-decoration: none;
}

.pagination a:hover {
    background: #F77F00;
    color: white;
    border-color: #F77F00;
}
@media (max-width: 768px) {
  .conteneur-dashboard {
    flex-direction: column;
    padding: 10px;
    gap: 15px;
  }

  .gauche, .droite {
    width: 100%;
  }

  .reponse {
    margin-left: 0;
  }

  .formulaire-message {
    padding: 15px;
    margin: 10px;
  }

  .conversation {
    padding: 15px;
    margin: 10px;
  }

  .message-meta {
    flex-direction: column;
    gap: 4px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
