/*
==================================================
 Projet : InfosEntretienChauffage.fr
 Répertoire : public_html/assets/css/
 Fichier : style.css
 Rôle : Style global du site
==================================================
*/

/* ------------------------
   Base & reset léger
------------------------- */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f6f7f8;
}

/* ------------------------
   Conteneur
------------------------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------
   En-tête
------------------------- */

.site-header {
  background: #1f3a5f;
  color: #fff;
  padding: 32px 0;
}

.site-header h1 {
  margin: 0 0 6px 0;
  font-size: 2rem;
}

.site-header .subtitle {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* ------------------------
   Navigation
------------------------- */

.main-nav {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #1f3a5f;
  font-weight: bold;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  background: #eef2f6;
}

.main-nav a.active {
  border-bottom: 3px solid #1f3a5f;
}

/* ------------------------
   Contenu principal
------------------------- */

main {
  padding: 32px 0;
}

section {
  margin-bottom: 32px;
}

h2 {
  color: #1f3a5f;
  margin-top: 0;
}

h3 {
  color: #1f3a5f;
}

/* ------------------------
   Texte & blocs
------------------------- */

p {
  margin: 0 0 12px 0;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

.muted {
  color: #555;
  font-size: 0.95rem;
}

.important {
  background: #fff3cd;
  border-left: 5px solid #ffcc00;
  padding: 12px 16px;
  margin: 16px 0;
}

/* ------------------------
   Boîtes pédagogiques
------------------------- */

.box {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 4px;
}

/* ------------------------
   Formulaires
------------------------- */

.form-card {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 24px;
  border-radius: 4px;
}

fieldset {
  border: 1px solid #ddd;
  padding: 16px;
  margin-bottom: 20px;
}

legend {
  padding: 0 6px;
  font-weight: bold;
  color: #1f3a5f;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 1rem;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1f3a5f;
}

/* Checkbox */

.checkbox {
  font-weight: normal;
}

.checkbox input {
  margin-right: 6px;
}

/* Boutons */

button {
  background: #1f3a5f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  background: #16304f;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Grilles */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ------------------------
   Notices (messages)
------------------------- */

.notice {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.notice.ok {
  background: #e6f4ea;
  border-left: 5px solid #2e7d32;
}

.notice.err {
  background: #fdecea;
  border-left: 5px solid #c62828;
}

/* ------------------------
   Statistiques
------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 4px;
}

.stat-label {
  font-weight: bold;
  color: #1f3a5f;
}

.stat-value {
  font-size: 1.6rem;
  margin: 6px 0;
}

.stat-help {
  font-size: 0.9rem;
  color: #555;
}

/* ------------------------
   Pied de page
------------------------- */

.site-footer {
  background: #1f3a5f;
  color: #ffffff;
  padding: 24px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #cfe0ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin: 6px 0;
}

.disclaimer {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ------------------------
   Responsive
------------------------- */

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    border-bottom: 1px solid #eee;
  }
}
