img {
  max-width: 100%;
  height: auto;
}
html, body {
  overflow-x: hidden;
}
/* ================= RESET ================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */

.header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}
.header {
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo img {
  height: 100px;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

/* Soulignement animé */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #111;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.cta {
  background: #111;
  color: #fff;
  padding: 12px 22px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s ease;
}

.cta:hover {
  background: #333;
}

/* ================= HERO ================= */

.hero {
  background: url('https://images.unsplash.com/photo-1509395176047-4a66953fd231?q=80&w=1600') center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
}

.overlay {
  background: rgba(0,0,0,0.55);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 20px;
}


/* ================= ABOUT ================= */
.about-text {
  border-left: 3px solid #111;
  padding-left: 20px;
}
.about-text {
  max-width: 750px;
}

.about-text p {
  margin-bottom: 22px;
  line-height: 1.8;
  font-size: 16px;
  color: #444;
}

.about-intro {
  font-size: 18px;
  color: #222;
}

/* APOS */
.brand {
  font-weight: 700;
  letter-spacing: 3px;
  color: #000;
}

/* APO / POS */
.accent {
  font-weight: 700;
  color: #111;
}
/* ================= SECTIONS ================= */

.section {
  padding: 90px 0;
}

.light {
  background: #f5f5f5;
}

/* ================= EXPERTISES ================= */
.expertises.section {
  padding-bottom: 30px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.card {
  position: relative;
  padding: 40px;
  border: 1px solid #e5e5e5;
  background: #fff;
  overflow: hidden;
  transition: 0.3s ease;
background: #f9f9f9;
}
.card::before {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  transition: 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #111;
}


.elec::before {
  background-image: url("picto/electricity.svg");
}

.hvac::before {
  background-image: url("picto/hvac.svg");
}

.sanitary::before {
  background-image: url("picto/plumbing.svg");
}

.etancheite::before {
  background-image: url("picto/automation.svg");
}

.automation::before {
  background-image: url("picto/ev.svg");
}

.incendie::before {
  background-image: url("picto/tools.svg");
}
.suivichantier::before {
  background-image: url("picto/tools.svg");
}
.maintenance::before {
  background-image: url("picto/tools.svg");
}
  
.service-content {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.service-content.active {
  opacity: 1;
  height: auto;
  overflow: visible;
}


.service-detail h3 {
  margin-bottom: 15px;
}
.service-detail p {
  color: #555;
  max-width: 700px;
}
.card.active-card {
  border-color: #111;
  background: #fff;
  transform: translateY(-5px);
}
.service-detail {
  margin-top: 60px;
  padding: 60px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  display: none;
  position: relative;
}

/* Layout 2 colonnes */
.service-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Texte */
.service-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.service-text p {
  margin-bottom: 20px;
  color: #555;
}

.service-list {
  margin-bottom: 30px;
  padding-left: 20px;
}

.service-list li {
  margin-bottom: 8px;
  color: #444;
}

/* Image */
.service-image img {
  width: 100%;
  border-radius: 10px;
}

/* Bouton fermer */
.close-service {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.2s ease;
}

.close-service:hover {
  opacity: 1;
}

/* Petite touche couleur premium */
.service-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #111;
  border-radius: 10px 0 0 10px;
}
/* ================= SLIDER REALISATIONS ================= */

.projets.section {
  padding-top: 30px;
}

.slider {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  display: flex;
  gap: 40px;
  align-items: center;
}

.slide img {
  width: 60%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.slide-content {
  width: 40%;
}

/* Boutons flèches */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.6);
  border: none;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
}

.slider-btn svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  fill: none;
  stroke-width: 2;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ================= PARTENAIRES ================= */

.partners-slider {
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.hover-zone {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  z-index: 5;
}

.left-zone { left: 0; }
.right-zone { right: 0; }

.partners-track {
  display: flex;
  transition: transform 2s ease;
}

.partner-slide {
  min-width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.partner-slide img {
  max-height: 40px;
  filter: grayscale(100%);
  transition: 0.3s ease;
}

.partner-slide img:hover {
  filter: grayscale(0%);
}

/* ================= CONTACT ================= */

.contact-section {
  background: #ededed;
  padding: 120px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 12px;
}
.contact-item img {
  width: 20px;
  height: 20px;
}
#map {
  height: 350px;
  border-radius: 8px;
}

.contact-right form {
  background: #fff;
  padding: 50px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.contact-right input,
.contact-right select,
.contact-right textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background-color: #fff;
  border-radius: 6px;
  box-sizing: border-box;
}
/* Uniformiser hauteur input & select */
.contact-right input,
.contact-right select {
  height: 52px;
}

/* Supprimer style natif select */
.contact-right select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}







.contact-right textarea {
  min-height: 200px;
}

.contact-right button {
  padding: 14px 28px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
}

/* ================= FOOTER ================= */

footer {
  background: #e5e5e5;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #666;
}

.footer-links a:hover {
  color: #111;
}

.social-links img {
  width: 22px;
  filter: brightness(0);
  opacity: 0.7;
  transition: 0.3s ease;
}

/* Facebook hover */
.social-links a:nth-child(1):hover img {
  filter: invert(30%) sepia(94%) saturate(2000%) hue-rotate(200deg);
  opacity: 1;
}

/* Instagram hover */
.social-links a:nth-child(2):hover img {
  filter: invert(35%) sepia(98%) saturate(2000%) hue-rotate(320deg);
  opacity: 1;
}

/* ================= COOKIE BANNER ================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 14px;
}

.cookie-text {
  max-width: 70%;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
}

.cookie-buttons button:first-child {
  background: #fff;
  color: #111;
}

.cookie-buttons button:last-child {
  background: #444;
  color: #fff;
}
/* ================= LANGUE BOUTON ================= */

.lang-switch {
  display: flex;
  gap: 8px;
  margin: 0 20px;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  background: #f2f2f2;     /* clair par défaut */
  color: #111;
  transition: all 0.2s ease;
}

/* hover léger */
.lang-switch a:hover {
  background: #e5e5e5;
}

/* langue active */
.lang-switch a.active {
  background: #111;
  color: #fff;
}


/* ================= PAGES JURIDIQUES ================= */

.legal-wrapper h1 {
  margin-bottom: 40px;
}

.legal-wrapper h2 {
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-wrapper p {
  margin-bottom: 15px;
  color: #333;
}
/* ================= MOBILE VERSION ================= */

@media (max-width: 900px) {

  /* Container */
  .container {
    width: 100%;
    padding: 0 15px;
  }

  /* Header */
  .header-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 15px;
    padding: 20px 0;
  }

  .logo img {
  height: 140px;
  width: auto;
}

  .nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .cta {
    width: 100%;
    text-align: center;
    padding: 14px;
    margin-bottom: 20px;
  }

  /* Hero */
  .hero {
    height: auto;
    padding: 60px 0;
  }

  .hero h1,
  .hero p {
    display: none;
  }

  /* Expertises */
  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px;
  }

  .service-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail {
    padding: 30px;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #map {
    height: 250px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .social-links {
    display: flex;
    justify-content: center;
  }

  /* Partners title */
  .partners-title {
    display: none;
  }

}
@media (max-width: 900px) {

  .section {
    padding: 35px 0;
  }

}
@media (max-width: 900px) {

  .partners.section {
    padding-top: 20px;
    padding-bottom: 30px;
  }

}
@media (max-width: 900px) {

  .contact-section {
    padding: 40px 0;
  }

}
@media (max-width: 900px) {

  #map {
    height: 180px;
  }

}
@media (max-width: 900px) {

  .section {
    padding: 40px 0;
  }

}
@media (max-width: 900px) {

  .contact-section {
    background: #ffffff;
  }

}
@media (max-width: 900px) {

  .contact-section .container {
    background: #ffffff;
  }

}
@media (max-width: 900px) {

  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* espace entre Facebook et Instagram */
  }

}
@media (max-width: 900px) {

  .social-links img {
    width: 28px;
  }

}
@media (max-width: 900px) {

  footer {
    background: #ffffff;
  }

}