/* ==============================
   PAGE ESPACE CONSEILLER
   ============================== */


div.contenu.conseiller h1 {
  font-size: 2rem;
  text-align: center;
  color: #4a2c82;
  margin-bottom: 2rem;
}

div.contenu.conseiller {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
}

@media (max-width: 768px) {
  div.contenu.conseiller {
    padding: 1rem; /* réduire un peu sur petit écran */
  }
}

/* ===== Formulaire ===== */
#form-cosi {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

#form-cosi fieldset {
  border: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

#form-cosi label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Forcer les champs à s’adapter à la largeur dispo */
#form-cosi input[type="text"],
#form-cosi input[type="password"],
#form-cosi input[type="url"],
#form-cosi input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* inclut padding + border dans width */
  padding: 0.6rem 1rem; 
  border: 1px solid #ccc; 
  border-radius: 0.5rem; 
  font-size: 1rem; 
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#form-cosi input:focus {
  border-color: #4a2c82;
  box-shadow: 0 0 0 3px rgba(74, 44, 130, 0.15);
  outline: none;
}

/* Aperçu du logo */
#preview-logo {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 2px solid #eee;
  padding: 0.3rem;
  background: #fafafa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;   /* ne dépasse jamais du conteneur */
  height: auto;      /* conserve les proportions */
  display: block;    /* évite les espaces parasites inline */
  margin: 0 auto;    /* centre l’image si plus petite */
}

/* ===== Séparateur ===== */
main.contenu.conseiller hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #4a2c82, transparent);
  margin: 2.5rem 0;
}


/* ===== Liste des bilans ===== */
.liste-bilans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.liste-bilans .bilan-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.liste-bilans .bilan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.liste-bilans .bilan-card h3 {
  margin-top: 0;
  color: #4a2c82;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.liste-bilans .bilan-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}
