/* BASE */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

h2, h3 {
  color: #3a78c2;
}

section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
header {
  width: 100%;
  background-color: #fff;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-height: 130px;
  height: auto;
}

.logo a {
  display: inline-block;
}

/* HERO */
.hero {
  width: 100%;
  max-height: 500px;
  background: url('img/hero-climatisation-marsillargues.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1rem;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* NUEVO: contenedor de los botones */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Media queries */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  /* NUEVO: botones a ancho completo en móvil */
  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    text-align: center;
  }
}

/* Botón universal */
.call-btn {
  background-color: #3a78c2;
  color: white !important;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
}

/* Botón Devis Gratuit */
.devis-btn {
  background-color: white;
  color: #3a78c2; /* COLOR ACTUALIZADO */
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid white; /* Borde para mantener la coherencia visual */
  display: inline-block;
}


/* SERVICES */
.services {
  padding: 4rem 2rem;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #3a78c2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 250px;
  border-radius: 5px;
  flex-shrink: 0;
}

.service-box div {
  flex: 1;
  text-align: left;
}

.service-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.service-box p {
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .service-box {
    flex-direction: column;
    text-align: center;
  }

  .service-box div {
    text-align: center;
  }

  .service-box img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
}

/* MARQUES */
.marques-clim {
  padding: 3rem 2rem 4rem 2rem;
  text-align: center;
  background-color: #fff;
}

.marques-clim h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.grid-marques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.marque {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.marque:hover {
  transform: translateY(-5px);
}

/* Enlaces dentro de .marque */
.marque a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: color 0.3s ease;
}

.marque a:hover {
  color: #1a5db3;
  cursor: pointer;
}

/* Imagen dentro de enlace */
.marque a img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.marque a:hover img {
  transform: scale(1.05);
}

.marque h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.marque p {
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-marques {
    gap: 1.5rem;
  }

  .marque {
    padding: 1.5rem;
  }

  .marque p {
    text-align: center;
  }
}

/* TABLE DES PRIX */
.pricing {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pricing-intro {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #666;
}

.pricing-tables {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.price-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: 5px solid #3a78c2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 300px;
  padding: 2rem;
  text-align: left;
}

.price-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.price-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-box li {
  margin-bottom: 0.8rem;
  color: #333;
  font-size: 1rem;
}

.price-box li span {
  font-weight: 600;
  color: #222;
}

.price-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-circle {
  background-color: #ffffff;
  border: 3px solid #3a78c2;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.icon-circle svg {
  width: 28px;
  height: 28px;
}

/* Animación suave al pasar el ratón */
.price-box:hover .icon-circle {
  transform: scale(1.1);
}

/* SIMULATOR */
#simulateur-clim {
  padding: 60px;
  max-width: 600px;
  margin: auto;
  font-family: sans-serif;
}

#simulateur-clim h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.question {
  display: none;
  margin-bottom: 20px;
}

.question.active {
  display: block;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.tooltip-icon {
  display: inline-block;
  position: relative;
  color: #3a78c2;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 260px;
  background-color: #3a78c2;
  color: #fff;
  text-align: left;
  padding: 10px;
  border-radius: 5px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 0;
  transform: translateY(5px);
  transition: opacity 0.3s;
  font-size: 0.85rem;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text,
.tooltip-icon.active .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.hidden {
  display: none;
}

.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 20px;
}

#simulateur-clim button,
#simulateur-clim .form-buttons a {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}


#nextBtn {
  background-color: #3a78c2;
  color: white;
}

#submitBtn {
  background-color: #28a745;
  color: white;
}

#resetBtn {
  background-color: #f0f0f0;
  color: #333;
}

.result-box {
  margin-top: 30px;
  text-align: center;
  font-size: 1.2em;
  color: #333;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

/* RÉALISATIONS */
.realisations {
  background-color: #fff;
  text-align: center;
}

.realisations h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.realisations figure {
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.realisations figure:hover img {
  filter: brightness(75%);
}

.realisations img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: filter 0.3s ease;
}

.realisations figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* Responsive */
@media (max-width: 1024px) {
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .realisations-grid {
    grid-template-columns: 1fr;
  }

  .realisations figcaption {
    font-size: 0.9rem;
  }
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  display: block;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav span {
  font-size: 3rem;
  color: white;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
}

.lightbox-nav span:hover {
  color: #3a78c2;
}

/* AVIS */
.avis {
  text-align: center;
}

.avis h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.avis-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

.stars {
  color: #ffc107; /* amarillo */
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

blockquote {
  border-left: 5px solid #3a78c2;
  padding-left: 1rem;
  margin: 0 0 1rem;
  color: #333;
  font-style: italic;
}

.avis-type {
  font-size: 0.95rem;
  color: #666;
}

/* Responsive */
@media (max-width: 992px) {
  .avis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .avis-grid {
    grid-template-columns: 1fr;
  }

  .avis-box {
    text-align: center;
  }

  blockquote {
    border-left: none;
    border-top: 3px solid #3a78c2;
    padding-top: 1rem;
    padding-left: 0;
  }
}

/* FAQ */
.faq {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
}

.faq h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid #3a78c2;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #444;
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .faq {
    padding: 3rem 1rem;
  }

  .faq-item {
    padding: 1.2rem 1.5rem;
  }
}

/* SECTION À PROPOS */
.a-propos {
  background-color: #fff;
  padding: 3rem 2rem;
  color: #333;
  text-align: center;
}

.a-propos h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.a-propos-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Imagen de perfil optimizada */
.a-propos-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.a-propos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.a-propos-text {
  flex: 1 1 500px;
  text-align: left;
}

.a-propos-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .a-propos-content {
    flex-direction: column;
    text-align: center;
  }

  .a-propos-text {
    text-align: center;
  }
}

/* CONTACT */
.contact {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Columna izquierda: formulario */
.contact-form {
  flex: 1 1 48%;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: left;
  background-color: #fff;
   margin-right: 1rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

/* Consentement RGPD */
.consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #333;
  width: 100%;
  text-align: left;
}

.checkbox-container {
  flex-shrink: 0;
  padding-top: 3px;
}

.text-container {
  flex: 1;
  line-height: 1.4;
}

.consentement input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #2e73c0;
  margin: 0;
}

.consentement a {
  color: #2e73c0;
  text-decoration: underline;
}

.contact-form button[type="submit"] {
  background-color: #3a78c2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button[type="submit"]:hover {
  background-color: #285a99;
}

.contact-form a {
  color: #3a78c2;
  text-decoration: none;
}

.contact-form a:hover {
  text-decoration: underline;
}

/* Columna derecha: Données de contact */
.contact-infos {
  flex: 1 1 48%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
  text-align: left;
  background-color: #fff;
}

.contact-infos h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-infos .info-line {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.contact-infos a {
  color: #3a78c2;
  text-decoration: none;
}

.contact-infos a:hover {
  text-decoration: underline;
}

.btn-call {
  display: inline-block;
  margin-top: 1rem;
  background-color: #3a78c2;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-call:hover {
  background-color: #285a99;
}

/* Mapa */
.map-wrapper {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form,
  .contact-infos {
    flex: 1 1 100%;
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f0f0f0;
  font-size: 0.9rem;
}

footer nav a {
  color: #3a78c2;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer nav a:hover {
  text-decoration: underline;
}

.footer-credit a {
    color: #3a78c2;
}
/*LEGALES */
.legal-hero {
  background-color: #3a78c2;
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.legal-hero h1 {
  font-size: 2.5rem;
  margin: 0;
}

.legal-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
  box-sizing: border-box;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: #3a78c2;
  margin-top: 2rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 0 1rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }
}
