/* ================================================
   COUVREUR BX – Feuille de style principale
   ================================================ */

/* --- Base & typographie --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  color: #000;
  background: #fff;
  margin: 0;
  padding: 0;
}

h1 { font-size: 1.5em; font-weight: 700; }
h2 { font-size: 1.3em; font-weight: 700; }
h3, h4, h5, h6 { font-weight: 600; }

a { color: #e67e23; text-decoration: none; }
a:hover { color: #c0621a; }

/* --- Navbar --- */
#main-nav {
  background-color: #121a2d;
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#main-nav .navbar-brand {
  color: #fff;
  font-size: 1.2em;
  letter-spacing: 0.5px;
}

#main-nav .nav-link {
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#main-nav .nav-link:hover,
#main-nav .nav-link.active {
  background-color: #577481;
  color: #fff !important;
}

.logo-nav {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* --- Hero accueil --- */
.hero-section {
  background: linear-gradient(rgba(18, 26, 45, 0.72), rgba(18, 26, 45, 0.72)),
              url('../image/couvreur-lyon.png') center center / cover no-repeat;
  min-height: 480px;
  padding: 3rem 1rem;
}

.hero-section h1 {
  font-size: 2.5em;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.hero-section .lead {
  font-size: 1.1em;
  opacity: 0.92;
}

/* --- Hero pages internes --- */
.page-hero {
  background: linear-gradient(rgba(18, 26, 45, 0.78), rgba(18, 26, 45, 0.78)),
              url('../image/pose-tuile-lyon-metropole.png') center center / cover no-repeat;
  min-height: 200px;
  padding: 3rem 1rem;
}

/* --- Bouton principal --- */
.btn-orange {
  background-color: #e67e23;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.55rem 1.4rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-orange:hover {
  background-color: #c0621a;
  color: #fff;
}

/* --- Titres de section --- */
.section-title {
  position: relative;
  padding-bottom: 0.6rem;
  color: #121a2d;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #e67e23;
  margin: 0.4rem auto 0;
  border-radius: 2px;
}

/* --- Blocs service --- */
.service-block img {
  border-radius: 8px;
  max-height: 340px;
  width: 100%;
  object-fit: cover;
}

/* --- Cartes avantages --- */
.card-avantage {
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #e67e23;
  transition: box-shadow 0.2s;
}

.card-avantage:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
}

.icon-circle {
  font-size: 2em;
}

/* --- Formulaire contact --- */
.contact-form label { font-weight: 500; }

.contact-form .form-control:focus {
  border-color: #e67e23;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 35, 0.25);
}

/* --- Footer --- */
.footer-section {
  background-color: #121a2d;
}

.footer-section a {
  color: #e0e0e0;
  transition: color 0.2s;
}

.footer-section a:hover { color: #e67e23; }

/* --- Popup satisfaction --- */
.satisfaction-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border-left: 5px solid #e67e23;
  border-radius: 8px;
  padding: 18px 24px 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,.18);
  z-index: 9999;
  min-width: 240px;
  animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.popup-title {
  font-weight: 700;
  margin: 0 0 6px;
  color: #121a2d;
  font-size: 0.95em;
}

.stars { font-size: 1.5em; line-height: 1; }
.star.full  { color: #e67e23; }
.star.half  { color: #e67e23; opacity: 0.55; }

.popup-note {
  margin: 6px 0 0;
  font-size: 0.88em;
  color: #444;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section { min-height: 340px; }
  .service-block img { max-height: 240px; }
}
