/* ============================================
   FossePro - CSS Complet Assainissement Non Collectif
   Theme: Guide fosse septique, vidange, entretien, mise aux normes
   Version: 2.0 (Complete - all HTML classes defined)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2d3436;
  background-color: #f9fbfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0e7c6b;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
  color: #095e52;
}

ul, ol {
  list-style: none;
}

p {
  margin-bottom: 1rem;
}


/* --- HEADER & NAVIGATION --- */
.site-header {
  background: linear-gradient(135deg, #ffffff 0%, #f4faf8 100%);
  border-bottom: 3px solid #0e7c6b;
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0e7c6b;
  border-bottom: none;
  letter-spacing: -0.5px;
}

.logo-link .icon {
  display: inline-block;
  margin-right: 0.3rem;
}

nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d4a4e;
  border-radius: 8px;
  background-color: transparent;
  transition: all 0.25s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #ffffff;
  background-color: #0e7c6b;
}


/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(145deg, #0e7c6b 0%, #12a890 50%, #16cfbc 100%);
  color: #ffffff;
  padding: 3.5rem 2rem;
  text-align: center;
}

.hero-secondary {
  background: linear-gradient(145deg, #1a2830 0%, #2d4a42 50%, #0e7c6b 100%);
}

.hero-contact {
  background: linear-gradient(145deg, #095e52 0%, #0e7c6b 50%, #16cfbc 100%);
}

.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #ffffff;
}

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
  color: #ffffff;
}


/* --- CTA BUTTON --- */
.cta-button {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background-color: #ffffff;
  color: #0e7c6b;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: none;
  cursor: pointer;
}

.cta-button:hover {
  color: #0e7c6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.24);
}


/* --- PAGE WRAPPER & TITRES --- */
.page-wrapper {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

h2.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #0e7c6b;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

p.section-subtitle {
  text-align: center;
  max-width: 750px;
  margin: -0.3rem auto 2.5rem;
  color: #636e72;
  font-size: 1.05rem;
}


/* --- CONTENT DEUX COLONNES (index.html) --- */
.content-columns {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .content-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-block h2,
.content-block h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: #0e7c6b;
  margin-bottom: 0.8rem;
  font-weight: 800;
}


/* --- LISTES DEFINITION (dt/dd) --- */
dl.tip-list {
  margin-bottom: 2rem;
}

dl.tip-list dt,
dl.tip-list-faq dt {
  font-weight: 700;
  color: #3d4a4e;
  padding-top: 1.25rem;
  display: block;
}

dl.tip-list dd,
dl.tip-list-faq dd {
  color: #5a686d;
  margin-bottom: 0.3rem;
  padding-left: 1rem;
  border-left: 3px solid #eaf7f3;
  display: block;
}


/* --- TABLEAUX PRIX (entretien.html) --- */
.prix-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.prix-table th,
.prix-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eaf7f3;
}

.prix-table thead th {
  background-color: #e8f6f2;
  color: #0e7c6b;
  font-weight: 700;
}

.prix-table tbody td:first-child {
  font-weight: 600;
  color: #3d4a4e;
  min-width: 180px;
}


/* --- LISTE ACTIONS (entretien.html) --- */
.liste-actions li {
  padding: 0.5rem 0;
  color: #5a686d;
}

.liste-actions li + li {
  border-top: 1px solid #f0f4f3;
}


/* --- PRIX TABLE WRAPPER (entretien.html) --- */
.prix-table-wrapper h3,
.content-block h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: #0e7c6b;
  margin-bottom: 0.8rem;
  font-weight: 800;
}


/* --- LISTE ASIDE (entretien.html & contact.html) --- */
dl.tip-list-aside dt,
.aside-box dt {
  font-weight: 700;
  color: #3d4a4e;
  padding-top: 1rem;
  display: block;
}

dl.tip-list-aside dd,
.aside-box dd {
  color: #5a686d;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid #eaf7f3;
  display: block;
}


/* --- GRILLES: SIGNES D'ALERTE & OBLIGATIONS SPANC (index) --- */
.signes-grid,
.obligations-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .signes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .obligations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .signes-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .obligations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.indice-item,
.obligation-card {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.indice-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(14, 124, 107, 0.12);
}


/* --- NUMEROS INDICE (index.html) --- */
.num-indice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #0e7c6b;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}


/* --- PRIX CARDS (entretien.html) --- */
.prix-cards {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .prix-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prix-card {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
}

.prix-card .montant {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #0e7c6b;
  margin-top: 1.5rem;
  line-height: 1.4;
}


/* --- FORMULAIRE DEVIS (contact.html) --- */
.devis-form {
  max-width: 850px;
  margin: auto;
}

.devis-form fieldset {
  border: 2px solid #eaf7f3;
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.devis-form legend {
  font-weight: 800;
  color: #0e7c6b;
  font-size: 1.15rem;
  padding: 0 0.4rem;
}

.devis-form label {
  display: block;
  font-weight: 700;
  margin-top: 1rem;
  color: #3d4a4e;
}

.devis-form input[type="text"],
.devis-form input[type="email"],
.devis-form input[type="tel"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #dde4e6;
  background-color: #fafcfd;
}

.devis-form select,
.devis-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #dde4e6;
  background-color: #fafcfd;
}


.required {
  color: #d9534f;
  font-weight: bold;
  display: inline-block;
}

.sub-text {
  font-size: small;
  color: #636e72;
  font-weight: normal;
  display: inline-block;
  margin-left: 0.5rem;
}


/* --- CONTACT LAYOUT (contact.html) --- */
.contact-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }
}

.form-column {
  flex: 2;
  min-width: 0;
}


/* --- ASIDE BOX (entretien.html & contact.html) --- */
.aside-box {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  flex-shrink: 0;
}


/* --- FAQ SECTION (contact.html & entretien.html) --- */
.faq-section dl.tip-list-faq dt {
  font-weight: 700;
  color: #2d3436;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
}

.aside-box h3,
.contact-info-aside h3 {
  color: #0e7c6b;
  font-weight: 800;
  margin-bottom: 1rem;
}


/* --- FOOTER --- */
.site-footer {
  background-color: #f4faf8;
  border-top: 3px solid #0e7c6b;
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

.copyright {
  color: #636e72;
  font-size: 0.95rem;
  margin-bottom: auto;
}


/* --- RESPONSIVE GLOBAL --- */
@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .page-wrapper {
    padding: 0 1rem;
  }

  .indice-item,
  .obligation-card,
  .prix-card {
    padding: 1.5rem 1rem;
  }
}


/* --- UTILITE CLEARFIX --- */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}