/* ==========================================================================
   ECO2 Ramonage - Style principal
   ========================================================================== */

/* --- Variables & Reset --- */
:root {
  --orange-feu: #C2410C;
  --gris-anthracite: #292524;
  --beige-clair: #FEF3C7;
  --texte-sombre: #1C1917;
  --accent-dore: #B45309;
  --fond-blanc-casse: #FFFBEB;
  --blanc: #ffffff;
  --gris-moyen: #78716C;
  --gris-border: #D6D3D1;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Work Sans', Arial, sans-serif;
  color: var(--texte-sombre);
  background-color: var(--fond-blanc-casse);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-feu);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dore);
}

h1, h2, h3, h4 {
  font-family: 'Crimson Text', Georgia, serif;
  color: var(--gris-anthracite);
  line-height: 1.3;
}

h1 { font-size: 2.6rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--orange-feu);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img,
.logo svg {
  height: 45px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .brand {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gris-anthracite);
}

.logo-text .tagline {
  font-size: 0.7rem;
  color: var(--gris-moyen);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.main-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--texte-sombre);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--beige-clair);
  color: var(--orange-feu);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gris-anthracite);
  border-radius: 3px;
  transition: all var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gris-anthracite);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 3rem 0;
}

.hero h1 {
  color: var(--blanc);
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero .highlight {
  color: var(--beige-clair);
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--orange-feu);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--accent-dore);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194,65,12,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 2px solid var(--blanc);
}

.btn-outline:hover {
  background: var(--blanc);
  color: var(--orange-feu);
}

/* --- Sections --- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--blanc);
}

.section-dark {
  background: var(--gris-anthracite);
  color: rgba(255,255,255,0.9);
}

.section-dark h2,
.section-dark h3 {
  color: var(--beige-clair);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange-feu);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--gris-moyen);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--blanc);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--gris-border);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: var(--orange-feu);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  background: var(--beige-clair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--orange-feu);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--gris-moyen);
  font-size: 0.95rem;
}

/* --- Features / Why Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--beige-clair);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange-feu);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange-feu), var(--accent-dore));
  color: var(--blanc);
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.cta-banner h2 {
  color: var(--blanc);
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 550px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

/* --- Image section --- */
.img-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.img-text-section img {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--blanc);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--gris-border);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 4rem;
  color: var(--orange-feu);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--gris-moyen);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--texte-sombre);
  font-size: 0.9rem;
}

.stars {
  color: var(--accent-dore);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--orange-feu);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gris-border);
  border-radius: 8px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--blanc);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange-feu);
  box-shadow: 0 0 0 3px rgba(194,65,12,0.1);
}

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

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--gris-anthracite);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--blanc);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  max-width: 550px;
  margin: 0 auto;
}

.breadcrumb {
  text-align: center;
  padding: 1rem 0;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-border);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--gris-moyen);
}

.breadcrumb span {
  color: var(--gris-moyen);
  margin: 0 0.4rem;
}

/* --- Content page --- */
.content-page {
  padding: 3rem 0;
}

.content-page h2 {
  margin-top: 2rem;
}

.content-page ul {
  list-style: disc;
}

.content-page .content-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--blanc);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--gris-border);
}

/* --- Zone intervention --- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.zone-item {
  background: var(--beige-clair);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  background: var(--gris-anthracite);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--beige-clair);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--beige-clair);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--orange-feu);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 404 page --- */
.page-404 {
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--orange-feu);
  line-height: 1;
}

.page-404 h2 {
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--gris-moyen);
  max-width: 450px;
  margin: 0 auto 2rem;
}

/* --- Table --- */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gris-border);
}

th {
  background: var(--beige-clair);
  font-weight: 600;
  font-size: 0.92rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--blanc);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    padding: 5rem 1.5rem 2rem;
    transition: right var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

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

  .main-nav a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--gris-border);
    border-radius: 0;
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .img-text-section {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    padding: 2.5rem 1.2rem;
    border-radius: 10px;
  }
}

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

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Overlay mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}
