/* --- Responsive improvements for all pages (gallery, avis, FAQ, forms, footer) --- */
@media (max-width: 900px) {
  .section, .avis-section, .faq-section, .galerie-section {
    padding: 1.2rem 0.7rem;
    max-width: 98vw;
  }
  .footer-container {
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
  }
  .services-list, .avis-list, .galerie-grid {
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
  }
  .service-card, .avis-item, .galerie-item {
    min-width: 90vw;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1em;
    padding: 1em 0.5em;
  }
  .navbar-menu {
    flex-direction: column;
    gap: 0.7em;
    margin-left: 0;
    width: 100%;
    align-items: flex-start;
  }
  .navbar-logo img {
    width: 120px;
    height: 60px;
  }
  .hero-content h1 {
    font-size: 1.3rem;
  }
  .section, .avis-section, .faq-section, .galerie-section {
    padding: 0.7rem 0.2rem;
    max-width: 100vw;
  }
  .about-img img {
    width: 100%;
    height: auto;
    max-width: 180px;
  }
  .footer-content, .footer-container {
    flex-direction: column;
    gap: 1em;
    align-items: center;
  }
  .footer-section {
    width: 100%;
    max-width: 98vw;
    text-align: center;
  }
  .contact-form {
    max-width: 98vw;
    padding: 0 0.5em;
  }
  .faq-list, .avis-list, .galerie-grid {
    padding: 0;
    gap: 0.7em;
  }
  .faq-question, .avis-item, .galerie-item {
    font-size: 1em;
    min-width: 90vw;
    max-width: 98vw;
  }
}
/* Style premium pour RENOVON Électricité */
:root {
  --primary: #232946;
  --primary-dark: #1a2236;
  --accent: #ffd700;
  --bg: #f7f8fa;
  --radius: 1.2rem;
  --shadow: 0 4px 24px #c7d2fe33;
  --font-main: 'Inter', 'Montserrat', Arial, sans-serif;
}
body {
  font-family: var(--font-main);
  margin: 0;
  min-height: 100vh;
  color: var(--primary);
  background: var(--bg);
  overflow-x: hidden;
}
.header {
  background: #fff;
  box-shadow: 0 2px 12px #e3e6ee44;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 2em;
}
.navbar-logo img {
  height: 80px;
  width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px #b3c6e055);
}
.navbar-menu {
  display: flex;
  gap: 2.5em;
  align-items: center;
  margin-left: 2em;
  list-style: none;
  padding: 0;
}
.navbar-menu a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.2em 0.1em 0.4em 0.1em;
  border: none;
  background: none;
  position: relative;
  transition: color 0.18s;
  cursor: pointer;
}
.navbar-menu a.active,
.navbar-menu a:hover {
  color: var(--primary-dark);
}
.navbar-menu a.active::after,
.navbar-menu a:hover::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: background 0.18s;
}
.btn-tel {
  background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.6em 1.5em;
  border-radius: 2em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px #c7d2fe44;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn-tel:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 8px 32px #c7d2fe66;
  transform: translateY(-2px) scale(1.04);
}
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.6);
  border-radius: 2.5rem;
  box-shadow: none;
  margin: 2.5rem auto 2.5rem auto;
  max-width: 1100px;
  overflow: hidden;
  text-align: center;
  padding: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 3rem 2rem;
  width: 100%;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 24px #c7d2fe33;
}
.hero-content .highlight {
  color: var(--accent);
}
.hero-content .highlight2 {
  color: var(--primary);
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0.8em 2.5em;
  border-radius: 2em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px #c7d2fe44;
  margin-top: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.cta-btn:hover {
  background: #ffe066;
  box-shadow: 0 8px 32px #c7d2fe66;
  transform: translateY(-4px) scale(1.04);
}
.section {
  max-width: 1100px;
  margin: 2.2rem auto 1.7rem auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.7rem 2.2rem;
  text-align: center;
  border: 1.5px solid #e0e7ef;
  backdrop-filter: blur(8px);
}
.section h2 {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-size: 2rem;
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0 1.5rem 0;
}
.service-card {
  background: #f7f8fa;
  color: var(--primary);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: left;
  font-size: 1.12rem;
  font-weight: 500;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  border: 1.5px solid #e0e7ef;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.2rem;
  transition: box-shadow 0.18s, transform 0.18s;
  backdrop-filter: blur(4px);
}
.service-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.8em;
  margin-bottom: 1em;
  box-shadow: 0 2px 8px #c7d2fe33;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
  color: var(--primary);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #c7d2fe44;
}
.service-card p {
  color: #3a4666;
  font-size: 1rem;
  margin: 0;
}
.cta-link {
  display: inline-block;
  color: var(--primary);
  background: #e0e7ef;
  border-radius: 2em;
  padding: 0.5em 1.5em;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1.2em;
  transition: background 0.18s, color 0.18s;
}
.cta-link:hover {
  background: var(--primary);
  color: #fff;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.about-img img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 1.2em;
  box-shadow: var(--shadow);
  background: #fff;
}
.about-text {
  flex: 1 1 320px;
  min-width: 220px;
  text-align: left;
}
.about-text ul {
  margin: 1em 0 1.5em 0;
  padding-left: 1.2em;
  color: #3a4666;
  font-size: 1.08rem;
}
.avis-list {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2em 0 1em 0;
}
.avis-card {
  background: #fff;
  border-radius: 1em;
  box-shadow: 0 2px 12px #e3e6ee44;
  padding: 1.2em 1.5em;
  min-width: 220px;
  max-width: 320px;
  text-align: left;
  border: 1.5px solid #e0e7ef;
}
.avis-stars {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #c7d2fe44;
}
.avis-text {
  font-style: italic;
  color: #3a4666;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}
.avis-author {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.contact-form input, .contact-form textarea {
  padding: 0.7em 1em;
  border-radius: 0.7em;
  border: 1.5px solid #b3c6e044;
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
  color: var(--primary-dark);
  resize: none;
  transition: border 0.18s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid var(--primary-dark);
  outline: none;
}
.contact-form button {
  background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0.8em 2.5em;
  border-radius: 2em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px #c7d2fe44;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-form button:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 8px 32px #c7d2fe66;
  transform: translateY(-4px) scale(1.04);
}
.contact-infos {
  margin-top: 2em;
  color: var(--primary-dark);
  font-size: 1.08rem;
}
.footer {
  text-align: center;
  padding: 2.2rem 0 1rem 0;
  color: var(--primary);
  font-size: 1.02rem;
  background: #fff;
  border-top: 1.5px solid #e0e7ef;
  margin-top: 2em;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 1em auto;
}
.footer-logo {
  height: 60px;
  width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px #b3c6e055);
}
.footer-links {
  display: flex;
  gap: 1.5em;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social a img {
  width: 32px;
  height: 32px;
  margin: 0 0.5rem;
  vertical-align: middle;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #c7d2fe22;
}
.footer-bottom {
  margin-top: 1em;
  color: #888;
  font-size: 0.98em;
}
@media (max-width: 900px) {
  .about-content, .services-list, .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }
  .hero {
    min-height: 40vh;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1em;
    padding: 1em 0.5em;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .section {
    padding: 1.2rem 0.5rem;
  }
  .about-img img {
    width: 100%;
    height: auto;
    max-width: 220px;
  }
  .footer-content {
    flex-direction: column;
    gap: 1em;
  }
}
