@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700&family=Playfair+Display:wght@400;700&display=swap');

/* PALETTE 3 : Chaleureux & Accessible */
:root {
  --primary-color: #f97316;  /* Orange vif (Orange-500) */
  --secondary-color: #57534e; /* Brun-Gris (Stone-600) */
  --text-color: #44403c;     /* Brun-Gris foncÃƒÂ© (Stone-700) */
  --bg-color: #fefcf9;       /* Blanc cassÃƒÂ© / TrÃƒÂ¨s lÃƒÂ©ger beige */
  --article-bg: #fafaf9;     /* Beige trÃƒÂ¨s pÃƒÂ¢le (Stone-50) */
  --footer-bg: var(--bg-color); /* Fond Footer = Fond Principal */
  --border-color: #fdba74;   /* Orange pÃƒÂ¢le (Orange-300) - pour tables */
  --border-light: #f5f5f4;   /* Beige trÃƒÂ¨s clair (Stone-100) - pour bordures fines */
  --hover-color: #ea580c;    /* Orange foncÃƒÂ© (Orange-600) */
  --button-bg: var(--primary-color); /* Orange vif (Orange-500) */
  --button-hover-bg: #c2410c; /* Orange trÃƒÂ¨s foncÃƒÂ© (Orange-700) */
  --container-width: 1100px;
}
/* RESET DE BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base font size pour le calcul des rem */
html {
    font-size: 100%; /* 1rem = 16px par dÃƒÂ©faut */
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif; /* Police principale */
  font-size: 1rem; /* Taille de base body = 16px */
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {max-width: 100%;height: auto;display: block;border-radius: 2px;}

/* =========================
   STRUCTURE DU HEADER
   ========================= */
.header {width: 100%;background-color: #fff !important;padding: 0.2rem 0;border-bottom: 1px solid #eee;position: relative;z-index: 100;}
.header-container { max-width: var(--container-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; width: 100%; }
.logo-link img {max-height: 100px;width: auto;}
.main-menu { margin-left: auto; }
.main-menu ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.main-menu li { display: inline-block; }
/* font-size: inherit; hÃƒÂ©rite du body (1rem) */
.main-menu a, .main-menu button { color: var(--text-color); font-weight: 500; text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; transition: background-color 0.3s, color 0.3s; cursor: pointer; background: none; border: none; font-family: inherit; font-size: 1rem; }
.main-menu a:hover, .main-menu button:hover { background-color: #f5f5f5; color: var(--hover-color); }

/* =========================
   HERO H1
   ========================= */
article h1:first-of-type { color: white; padding: 5rem 2rem; text-align: center; font-size: 2.5rem; /* 40px */ font-weight: 700; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 2rem; position: relative; z-index: 1; background: none; }
article h1:first-of-type::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; background-image: linear-gradient(rgba(18, 18, 18, 0.3), rgba(18, 18, 18, 0.3)), url('https://www.ada-travaux-publics.fr/images/dpe.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; z-index: -1; }
body { margin: 0; }
.header { margin-bottom: 0 !important; }
main { padding-top: 0 !important; margin-top: 0 !important; flex-grow: 1; }

/* =========================
   FIL DÃ¢â‚¬â„¢ARIANE
   ========================= */
.breadcrumb { max-width: var(--container-width); margin: 0 0 1.5rem 0; padding: 0.5rem 2rem; font-size: 0.875rem; /* 14px */ font-weight: 400; color: var(--text-color); display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; border-radius: 4px; order: 2; width: 100%; }
.breadcrumb-title { font-weight: 500; font-size: inherit; color: var(--secondary-color); margin: 0 0.5rem 0 0; flex-shrink: 0; }
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; color: var(--primary-color); }
.breadcrumb-nav span, .breadcrumb-nav a { color: var(--primary-color); text-decoration: none; flex-shrink: 0; font-size: inherit; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span::before, .breadcrumb-nav a:not(:first-child)::before { content: ">"; margin: 0 0.4rem; color: var(--text-color); }

/* =========================
   CONTENEUR PRINCIPAL ET ARTICLE
   ========================= */
.container { max-width: var(--container-width); width: 100%; margin: 0 auto; padding: 0 2rem; display: flex; flex-direction: column; }
article { background: var(--bg-color); padding: 0rem; border-radius: 8px; margin-bottom: 0; order: 1; width: 100%; }
article h1:not(:first-of-type) { font-size: 2rem; /* 32px */ color: var(--primary-color); margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
article h2 { font-size: 1.7rem; /* ~27px */ color: var(--secondary-color); margin-top: 2rem; margin-bottom: 1rem; font-family: 'Playfair Display', serif; padding-bottom: 0.5rem; }
article h3 { font-size: 1.4rem; /* ~22px */ color: var(--primary-color); margin-top: 1.8rem; margin-bottom: 0.8rem; font-family: 'Playfair Display', serif; }
article p { font-size: 1rem; /* 16px */ margin-bottom: 1rem; color: var(--text-color); word-wrap: break-word; overflow-wrap: break-word; }
article strong { color: var(--secondary-color); font-weight: 600; }
article em { font-style: italic; padding: 0; border-radius: 0; }
article ul, article ol { margin-left: 1.5rem; margin-bottom: 1rem; padding-left: 1rem; }
article li { margin-bottom: 0.5rem; font-size: 1rem; /* 16px */ }
article a { color: var(--primary-color); text-decoration: underline; transition: color 0.3s; word-break: break-all; }
article a:hover { color: var(--hover-color); }
.article-image { width: 100%; border-radius: 8px; margin: 1.5rem 0; transition: transform 0.3s ease; }
.article-image:hover { transform: scale(1.02); }
.article-date { font-size: 0.875rem; /* 14px */ color: #6b7280; margin-bottom: 1.5rem; text-align: left; padding-bottom: 1rem; }

/* =========================
   TABLES
   ========================= */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; /* 15.2px */ border-radius: 6px; border: 1px solid var(--border-color); overflow: hidden; }
th, td { padding: 0.8rem 1rem; border: 1px solid var(--border-color); text-align: left; vertical-align: top; font-size: inherit; /* HÃƒÂ©rite de la table */ }
th { background: var(--secondary-color); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-color: var(--secondary-color); }
tr:nth-child(even) td { background: #fff; }
tr:hover td { background: #f9f9f9; }

/* =========================
   CITATIONS
   ========================= */
blockquote { margin: 1.5rem auto; padding: 1rem 1.5rem; border-left: 5px solid var(--primary-color); border-radius: 4px; max-width: 800px; background-color: #f9fafb; }
blockquote p { font-style: italic; margin-bottom: 0; color: var(--secondary-color); font-size: 1.05rem; /* ~17px */ }
blockquote p strong { font-style: normal; }

/* =========================
   BOUTONS
   ========================= */
.button { display: inline-block; padding: 0.75rem 1.5rem; background: var(--button-bg); color: #fff; border-radius: 5px; text-decoration: none; font-weight: 500; border: none; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; font-size: 1rem; /* 16px */ }
.button:hover { background: var(--button-hover-bg); transform: translateY(-2px); }

/* =========================
   SECTIONS CONNEXES
   ========================= */
.related-pages { margin-top: 0; padding: 2rem; border-radius: 8px; background-color: #f9fafb; order: 3; width: 100%; }
.related-pages h2 { color: var(--primary-color); margin-bottom: 1.5rem; margin-top: 0; font-size: 1.5rem; /* 24px */ padding-bottom: 0.8rem; }
.related-pages ul { list-style: none; padding: 0; margin: 0; }
.related-pages li { margin-bottom: 0.8rem; }
.related-pages a { color: var(--secondary-color); text-decoration: none; display: block; padding: 0.6rem 1rem; border-radius: 4px; transition: background-color 0.3s, color 0.3s, transform 0.2s ease; font-weight: 500; border-left: 3px solid transparent; word-break: break-all; font-size: 1rem; /* 16px */ }
.related-pages a:hover { background-color: #f0f0f0; color: var(--hover-color); transform: translateX(5px); border-left-color: var(--primary-color); }

/* =========================
   FOOTER
   ========================= */
footer { background: var(--bg-color); color: var(--text-color); padding: 3rem 0 1.5rem 0; margin-top: auto; width: 100%; }
.footer-container { max-width: var(--container-width); width: 100%; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; align-items: start; }
.footer-column h3, .footer-column div:first-child { font-size: 1.1rem; /* ~18px */ margin-bottom: 1rem; color: var(--primary-color); font-weight: 600; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column > ul > li > ul > li { margin-bottom: 0.6rem; }
.footer-column a, .footer-column button { color: var(--text-color); text-decoration: none; transition: color 0.3s; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-size: 1rem; /* 16px */ display: block; text-align: left; word-break: break-all; }
.footer-column a:hover, .footer-column button:hover { color: var(--primary-color); text-decoration: underline; }
.footer-social { text-align: center; margin-top: 2rem; grid-column: 1 / -1; }
.footer-social a { color: var(--primary-color); font-size: 1.5rem; /* 24px */ margin: 0 0.75rem; transition: color 0.3s, transform 0.3s; display: inline-block; }
.footer-social a:hover { color: var(--hover-color); transform: scale(1.2); }
.footer-copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; font-size: 0.875rem; /* 14px */ color: var(--text-color); grid-column: 1 / -1; }

/* =========================
   FORMULAIRE DPE
   ========================= */
.form-container { background-color: var(--bg-color); padding: 2rem; border-radius: 8px; margin: 2rem auto; max-width: 900px; }
.form-step { margin-bottom: 1.5rem; padding: 1.5rem; border: 1px solid var(--footer-bg); border-radius: 6px; background-color: var(--article-bg); }
.form-step:last-child { margin-bottom: 0; border: 1px solid var(--footer-bg); }
.form-step h2 { font-size: 1.3rem; /* ~21px */ color: var(--primary-color); margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
.form-step label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-color); font-size: 1rem; /* 16px */ }
.form-step input[type="text"], .form-step input[type="number"], .form-step input[type="email"], .form-step input[type="tel"], .form-step select { width: 100%; padding: 0.75rem; margin-bottom: 1.2rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 1rem; /* >=16px pour ÃƒÂ©viter zoom iOS */ background-color: #fff; color: var(--text-color); box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s; }
.form-step input:focus, .form-step select:focus { border-color: var(--primary-color); outline: none; }
.checkbox-group label { margin-bottom: 0.8rem; font-weight: 500; font-size: 1rem; /* 16px */ }
.checkbox-group div { margin-bottom: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem; }
.checkbox-group div label { display: flex; align-items: center; font-weight: 400; margin-bottom: 0; cursor: pointer; font-size: 1rem; /* 16px */ }
.form-step input[type="checkbox"] { margin-right: 0.5rem; width: 1em; height: 1em; flex-shrink: 0; }
#form-step-6 label:has(input[type="checkbox"]) { display: flex; align-items: center; font-weight: 400; margin-top: 1rem; font-size: 0.95rem; /* ~15px */ }
#form-step-6 label input[type="checkbox"] { margin-right: 0.5rem; }
.form-step button, .form-step button[type="submit"] { display: inline-block; padding: 0.8rem 1.2rem; background-color: var(--button-bg); color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; /* 16px */ font-weight: 500; text-align: center; transition: background-color 0.3s ease, transform 0.2s ease; margin-top: 1.5rem; margin-right: 0.5rem; width: auto; }
.form-step button:hover, .form-step button[type="submit"]:hover { background-color: var(--button-hover-bg); transform: translateY(-1px); }
.form-step button[type="button"] { background-color: #e5e7eb; color: #374151; }
.form-step button[type="button"]:hover { background-color: #d1d5db; transform: none; }
.form-step button[type="submit"] { background-color: var(--primary-color); }
.form-step button[type="submit"]:hover { background-color: var(--hover-color); }
.result-message { margin-top: 1.5rem; padding: 1rem; border-radius: 4px; text-align: center; border: 1px solid transparent; font-size: 1rem; /* 16px */ }
.result-message.success { background-color: #dcfce7; color: #166534; border-color: #86efac; }
.result-message.error { background-color: #fee2e2; color: #991b1b; border-color: #fca5a5; }
#gaz_options, #bois_options, #pac_options, #property_usage_wrapper { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--border-color); margin-top: -0.5rem; margin-bottom: 1.5rem; padding-top: 1rem; background-color: transparent; padding: 1rem 0 1rem 1rem; }
#gaz_options label, #bois_options label, #pac_options label, #property_usage_wrapper label { font-weight: normal; font-size: 1rem; /* 16px */ }

/* =========================
   MEDIA QUERY SMARTPHONE (max-width: 768px) - Polices plus grandes
   ========================= */
@media (max-width: 768px) {

  /* SupprimÃƒÂ©: html { font-size: 93.75%; } - On garde 1rem = 16px par dÃƒÂ©faut */

  /* --- Header --- */
  .header-container { padding-left: 1rem; padding-right: 1rem; }
  .logo-link img { max-height: 40px; }
  .main-menu { width: 100%; position: absolute; top: 100%; left: 0; background-color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 1rem 0; display: none; }
  .main-menu.is-active { display: block; }
  .main-menu ul { flex-direction: column; gap: 0.5rem; }
  .main-menu a, .main-menu button { width: 100%; text-align: center; padding: 0.8rem 1rem; font-size: 1.05rem; /* ~17px - LÃƒÂ©gÃƒÂ¨rement plus grand */ }
  .mobile-menu-button { display: block; }
  @media (min-width: 769px) { .mobile-menu-button { display: none; } }

  /* --- Hero H1 --- */
  article h1:first-of-type {
      font-size: 1.8rem; /* ~29px - OK pour un titre principal mobile */
      padding: 3rem 1rem;
      min-height: 200px;
      margin-bottom: 1.5rem;
  }

  /* --- Fil d'Ariane --- */
  .breadcrumb {
      padding: 0.5rem 1rem;
      margin: 0 0 1rem 0;
      font-size: 0.9rem; /* ~14.4px - AugmentÃƒÂ© */
      gap: 0.3rem;
  }
   .breadcrumb-nav span::before, .breadcrumb-nav a:not(:first-child)::before { margin: 0 0.3rem; }

  /* --- Conteneur & Article --- */
  .container { padding-left: 1rem; padding-right: 1rem; }
  article { padding: 1rem; }
  article h2 { font-size: 1.6rem; /* ~26px - AugmentÃƒÂ© */ }
  article h3 { font-size: 1.3rem; /* ~21px - AugmentÃƒÂ© */ }
  article p { font-size: 1rem; /* 16px - Taille standard confortable */ }
  article ul, article ol { padding-left: 1rem; }
  article li { font-size: 1rem; /* 16px */ }
  .article-date { font-size: 0.9rem; /* ~14.4px - AugmentÃƒÂ© */ }

  /* --- Tables Responsives --- */
  table { border-radius: 4px; font-size: 1rem; /* Augmente base table */ }
  tr { border-radius: 4px; }
  td {
      padding-left: 40%;
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
      padding-right: 0.8rem;
      text-align: left;
      font-size: 1rem; /* 16px - Cellule de donnÃƒÂ©e plus grande */
      min-height: 2.75em; /* Hauteur min augmentÃƒÂ©e */
  }
  td::before {
      left: 0.8rem;
      width: calc(40% - 1.2rem);
      padding-right: 5px;
      font-size: 0.95rem; /* ~15px - Label plus grand */
      white-space: normal;
  }

   /* --- Formulaire --- */
   .form-container { padding: 1.5rem 1rem; margin-left: 0; margin-right: 0; max-width: 100%; }
   .form-step { padding: 1rem; }
   .form-step h2 { font-size: 1.4rem; /* ~22px - AugmentÃƒÂ© */ }
   .form-step label { font-size: 1rem; /* 16px - Labels plus grands */ }
   .form-step input[type="text"],
   .form-step input[type="number"],
   .form-step input[type="email"],
   .form-step input[type="tel"],
   .form-step select {
        padding: 0.8rem; /* Padding champs augmentÃƒÂ© */
        font-size: 1rem; /* 16px - Conserve pour ÃƒÂ©viter zoom */
   }
   .checkbox-group div { grid-template-columns: 1fr; gap: 0.8rem; }
   .checkbox-group div label { font-size: 1rem; /* 16px - Options checkbox */ }
   #form-step-6 label:has(input[type="checkbox"]) { font-size: 0.95rem; /* ~15px */ }
   .form-step button, .form-step button[type="submit"] {
       width: 100%;
       margin-right: 0;
       padding: 1rem 1rem; /* Padding bouton augmentÃƒÂ© */
       font-size: 1.05rem; /* ~17px - Texte bouton plus grand */
   }
    .form-step button:not(:last-child) { margin-bottom: 0.5rem; }

  /* --- Sections Connexes --- */
  .related-pages { padding: 1.5rem 1rem; }
  .related-pages h2 { font-size: 1.4rem; /* ~22px - AugmentÃƒÂ© */ }
  .related-pages a { font-size: 1rem; /* 16px */ }

  /* --- Footer --- */
  footer { padding: 1.5rem 0 1rem 0; }
  .footer-container { padding-left: 1rem; padding-right: 1rem; text-align: center; }
  .footer-column h3, .footer-column div:first-child { font-size: 1.1rem; /* ConservÃƒÂ© */ text-align: center; }
  .footer-column a, .footer-column button { text-align: center; font-size: 1rem; /* 16px */ }
  .footer-copyright { font-size: 0.875rem; /* 14px - ConservÃƒÂ© */ }
}