
/* === Diagnostic Auto - Style du formulaire et résultats === */

#diagnostic-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: grid;
    gap: 1rem;
}

#diagnostic-form select,
#diagnostic-form input[type="text"],
#diagnostic-form button {
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
}

#diagnostic-form button {
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

#diagnostic-form button:hover {
    background: #005d8f;
}

#resultats-diagnostic {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#resultats-diagnostic ul.resultats {
    list-style: none;
    padding: 0;
    margin: 0;
}

#resultats-diagnostic li {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

#resultats-diagnostic li:last-child {
    border-bottom: none;
}

.diag-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.diag-form fieldset {
    border: none;
    margin-bottom: 2rem;
    padding: 0;
}

.diag-form legend {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.diag-field {
    margin-bottom: 1.2rem;
}

.diag-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.diag-field input[type="text"],
.diag-field input[type="url"],
.diag-field input[type="file"],
.diag-field select,
.diag-field textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.diag-submit {
    text-align: center;
}

.diag-submit button {
    background: #0073aa;
    color: white;
    border: none;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.diag-submit button:hover {
    background: #005b8c;
}

@media screen and (max-width: 480px) {
  .diag-form {
    padding: 1rem;
  }

  .diag-field label {
    font-size: 0.95rem;
  }

  .diag-submit button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* === Fiche individuelle de diagnostic (encapsulée) === */

.single-fiche_diagnostic .fiche-diagnostic-single {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.single-fiche_diagnostic .fiche-diagnostic-single h1 {
  font-size: 2rem;
  color: #0073aa;
  margin-bottom: 1rem;
}

.single-fiche_diagnostic .fiche-infos p {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #333;
}

.single-fiche_diagnostic .fiche-infos strong {
  color: #444;
}

.single-fiche_diagnostic .fiche-bloc {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #0073aa;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.single-fiche_diagnostic .fiche-bloc h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #0073aa;
}

.single-fiche_diagnostic .fiche-bloc p {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.single-fiche_diagnostic .fiche-media {
  margin-top: 2rem;
}

.single-fiche_diagnostic .fiche-media h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.single-fiche_diagnostic .fiche-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-fiche_diagnostic .fiche-gallery img {
  max-width: 180px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .single-fiche_diagnostic .fiche-gallery {
    flex-direction: column;
  }

  .single-fiche_diagnostic .fiche-gallery img {
    max-width: 100%;
  }
}
.fiche-retour {
    text-align: center;
    margin-top: 2rem;
  }
  
  .btn-retour {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
  }
  
  .btn-retour:hover {
    background: #005f8e;
  }
  .resultats-diagnostic {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 1rem;
  }
  
  .resultats-diagnostic p.chargement {
    text-align: center;
    font-style: italic;
    color: #555;
  }
  .retour-recherche {
    margin: 1rem 0;
    text-align: left;
  }
  
  .retour-recherche a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
  }
  
  .retour-recherche a:hover {
    background-color: #005f8d;
  }
  