/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-behavior: smooth;
  scroll-behavior: smooth;
  scroll-behavior: smooth;
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: scroll;
}
body {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  background-color: #F2FBFF;
}

@media (max-width: 1024px) {
  html, body {
    scroll-snap-type: none;
  }
}

/* HEADER FIXÉ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.5);
  z-index: 1000;
}

.site-header::before{
  position : absolute;
  content : '';
  left : 0;
  top : 0;
  width : 100%;
  height : 4px;
  background: #E30613;
  background: linear-gradient(90deg,rgba(227, 6, 19, 1) 0%, rgba(227, 6, 19, 1) 37%, rgba(0, 157, 213, 1) 75%, rgba(23, 41, 130, 1) 100%);
}

.site-header .container{
  display : flex;
}

/* CONTENEUR CENTRAL */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 0 20px;
  display: block;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

/* SECTION HAUTEUR TOTALE */
section {
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* LOGO EN FOND BLANC INCLINÉ */
.logo-wrapper {
  height : 60px;
  position : relative;
}

.logo {
  height: 100px;
  width : auto;
  top : 0;
  left : 0;
  position : absolute;
}

.logo-wrapper::before{
  content : '';
  width : 100vw;
  height : 100px;
  background : white;
  position : absolute;
  right : 100%;
  top : 0;
}

/* NAVIGATION */
.nav {
  position: relative;
}

.nav-underline {
  position: absolute;
  bottom: 12px;
  height: 2px;
  background-color: #3C3C3B;
  transition: all 0.3s ease;
  border-radius: 5px;
  pointer-events: none;
}

.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  padding-bottom: 20px;
}

.nav ul li {
  position: relative;
  padding: 0 12px;
}

.nav ul li:not(:last-child):not(:nth-last-child(2))::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  background: #3C3C3B;
  width : 7px;
  height : 7px;
  border-radius : 10px;
}

.nav a {
  text-decoration: none;
  color: #3C3C3B;
  font-weight: 700;
  font-style : italic;
}

.nav a.active {
  color: #3C3C3B;
  font-weight: bold;
  position: relative;

}

.nav .cta {
  padding: 6px 14px;
  background: #fff;
  border-radius: 20px;
  font-style: italic;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  color: #333;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav .cta.active {
  background-color: #333;
  color: #fff;
  box-shadow: none;
}

/* TITLE */

.section-title {
  font-size: 28px;
  font-style: italic;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  width : 100%;
  text-align: center;
}

.section-bullet {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #444; /* Cercle extérieur */
  flex-shrink: 0;
}

.section-bullet::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 26px;
  height: 26px;
  background-color: #ccc; /* Rond intérieur */
  border: 3px solid #fff; /* Espace blanc */
  border-radius: 50%;
  box-sizing: border-box;
}

/* Button */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background-color: #444;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #666;
}

/* HERO */
#hero {
  height: 100vh;
  background: url('../img/hero.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo img {
  height: 70vh;
}

/* PRESENTATION */

.presentation {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.presentation .container {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0px 20px;
}

.presentation-image img {
  width: 300px;
  height: auto;
  border-radius: 10px;
}

.presentation-content {
  max-width: 1000px;
}

.presentation-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.presentation-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

/* SERVICES */

.services{
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.services h2{
  justify-content: center;
}

.services-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.service-card {
  flex: 1 1 30%;
  position : relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.service-card::before{
  content: "";
  position: absolute;
  bottom: 30px;
  left: -50px;
  width: 15vw;
  height: 15vw;
  border-radius: 50%;
  z-index: 1;
  background: transparent;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  z-index : 2;
}

.service-card-title {
  position: relative;
  padding: 50px 20px 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  border-radius: 0 0 12px 12px;
  width: 100%;
  z-index : 1;
}

.service-card-round {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 10px;
  z-index: 1;
  position: relative;
}

.service-card.renovation::before {
  background: #e9ebf7;
}

.service-card.maconnerie::before {
  background: #e0f4fd;
}

.service-card.couverture::before {
  background: #fce8ea;
}

.service-card.renovation .service-card-round {
  background-color: #1e2a78; /* bleu foncé */
}

.service-card.maconnerie .service-card-round {
  background-color: #00aaff; /* bleu clair */
}

.service-card.couverture .service-card-round {
  background-color: #e30613; /* rouge */
}

.service-card.renovation {
  box-shadow: 0 8px 40px rgba(30, 42, 120, 0.15); /* bleu foncé */
}

.service-card.maconnerie {
  box-shadow: 0 8px 40px rgba(0, 170, 255, 0.15); /* bleu clair */
}

.service-card.couverture {
  box-shadow: 0 8px 40px rgba(227, 6, 19, 0.15); /* rouge */
}

/* ATOUTS */

.atouts {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.atouts .container {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0px 20px;
}

/* GALERIE */

.galerie {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.galerie .container {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0px 20px;
}

.galerie h2{
  justify-content: center;
}

.galerie-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 15px 0;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  background-color: #ddd;
  cursor : pointer;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 20px;
}

.galerie-item:hover img {
  transform: scale(1.05);
}

.hover-content-item {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top right, rgba(227, 6, 19, 0.6), rgba(0, 157, 213, 0.6));
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  text-align: center;
  padding: 20px;
}

.galerie-item:hover .hover-content-item {
  opacity: 1;
}

.hover-content-item h3 {
  font-size: 22px;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

#popup-close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 25px;
  width : 40px;
  height : 40px;
  color: white;
  cursor: pointer;
  background : black;
  border-radius : 100%;
  display: flex;            /* Centrage avec Flexbox */
  align-items: center;      /* Centrage vertical */
  justify-content: center;  /* Centrage horizontal */
  z-index : 999;
}

#popup-inner {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* Toutes les images dans le popup */
#popup-inner img {
  max-width: 80%;
  margin : auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.compare-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.compare-wrapper img {
  width: 80%;
  margin : auto;
  display: block;
}

.compare-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

.compare-after img {
  clip-path: inset(0 0 0 0);
}

.compare-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #e30613;
  cursor: ew-resize;
  z-index: 2;
}

.compare-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-height: none; /* ❌ supprime la hauteur limitée */
  overflow: visible;
}

.compare-block {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.compare-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* ✅ conserve l’image entière */
  border-radius: 8px;
}

/* Encart AVANT / APRÈS */
.compare-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  background: linear-gradient(to right, #e30613, #009dd5);
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 2;
}


/* INFORMATIONS */

.informations {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.informations .container {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0px 20px;
}

.informations-image img {
  width: 300px;
  height: auto;
  border-radius: 10px;
}

.informations-content {
  max-width: 1000px;
}

.informations-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.informations-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

/* CONTACT */

.contact {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  position : relative;
}

.contact h2{
  justify-content: center;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0;
  align-items: flex-start;
}

.cdv-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  width: 100%;
  max-width: 320px;
  border-radius : 15px;
}

.form-content {
  flex: 1;
  min-width: 600px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  margin-bottom: 6px;
  font-weight: 500;
  font-style: italic;
  color: #333;
}

input,
textarea {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background-color: #ccf0ff;
  font-size: 16px;
  color: #222;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 157, 213, 0.3);
}

.form-btn {
  padding: 10px 24px;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.form-btn:hover {
  background-color: #555;
}

/* FOOTER */

#contact footer{
  display : grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap : 20px;
  color : #3C3C3B;
  position : absolute;
  bottom : 0;
  width : 100%;
  margin : auto;
  background : black;
  padding-top : 10px;
  padding-bottom : 10px;
  padding-left : calc((100vw - 1400px)/2);
  padding-right : calc((100vw - 1400px)/2);
}

#politique-de-confidentialite footer{
  display : grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap : 20px;
  color : #3C3C3B;
  width : 100%;
  margin : auto;
  background : black;
  padding-top : 10px;
  padding-bottom : 10px;
  padding-left : calc((100vw - 1400px)/2);
  padding-right : calc((100vw - 1400px)/2);
}

#mentions-legales footer{
  display : grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap : 20px;
  color : #3C3C3B;
  width : 100%;
  margin : auto;
  background : black;
  padding-top : 10px;
  padding-bottom : 10px;
  padding-left : calc((100vw - 1400px)/2);
  padding-right : calc((100vw - 1400px)/2);
}

.copyright_box{
  display : block;
  color : white;
  text-decoration: none;
}

.copyright_box a{
  color : #00aaff;
  text-decoration: none;
}

.wcomweb_box{
  display : block;
  text-align: right;
}

.wcomweb_box a{
  color : #00aaff;
  text-decoration: none;
}

.wcomweb_box img{
  height : 20px;
  width : auto;
}



/* ========= POLITIQUE DE CONFIDENTIALITE ========= */

#politique-de-confidentialite{
  position : relative;
}

#politique-de-confidentialite .content{
  padding-top : 120px;
  width : 1400px;
  margin : auto;
}

#politique-de-confidentialite h1{
  font-size : 30px;
  font-style: italic;
  font-weight : 700;
  color : #3C3C3C;
}

#politique-de-confidentialite h2{
  padding-top : 30px;
}


/* ========= MENTIONS LEGALES ========= */

#mentions-legales{
  position : relative;
}

#mentions-legales .content{
  padding-top : 120px;
  width : 1400px;
  margin : auto;
}

#mentions-legales h1{
  font-size : 30px;
  font-style: italic;
  font-weight : 700;
  color : #3C3C3C;
}

#mentions-legales h2{
  padding-top : 30px;
}



/* ========== MENU BURGER ========== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 999999999999;
  transform : translateY(5px);
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #3C3C3B;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation vers croix */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* NAVIGATION MOBILE */
@media (max-width: 1024px) {
  .site-header .container {
    flex-wrap: wrap;
    align-items: center;
  }

  .burger {
      display: flex;
      margin-left: auto;
    }

    .nav {
    position: absolute;
    top: 60px; /* Ajuste selon la hauteur de ton header/logo */
    left: 0;
    width: 100%;
    z-index: 999;
  }

    .nav ul {
      display: none;
      flex-direction: column;
      gap: 20px;
      width: 100%;
      position: absolute;
      top: 100%;
      left: 0;
      padding-top : 50px;
      padding-bottom : 25px;
      padding-left : 15px;
      padding-right : 15px;
      background : white;
      z-index: 1000;
    }

    .nav.active ul {
      display: flex;
    }

    .nav ul li {
      width: 100%;
      list-style: none;
    }

    .nav ul li::after{
      display : none;
    }

    .nav ul li a {
      width: 100%;
      display: block;
      font-size: 18px;
      font-weight: 500;
      color: #333;
      text-align: center;
    }

    .nav-underline {
      display: none !important;
    }

    .logo-wrapper{
      z-index : 999999 !important;
    }

    .logo-wrapper img{
      height : 80px !important;
    }

  section {
    height: auto !important;
  }

  .hero-logo{
    padding-top : 50px;
    padding-bottom : 50px;
  }

  .hero-logo img {
    width : 50%;
    margin-left : 25%;
    height : auto;
  }

}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {

  section {
    height: auto;
    padding: 80px 20px;
  }

  .logo-wrapper{
    z-index : 99;
  }

  .presentation .container,
  .atouts .container,
  .informations .container {
    flex-direction: column;
  }

  .services-cards {
    flex-direction: column;
    align-items: center;
  }

  .form-content {
    min-width: 100%;
  }

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

  .galerie-content {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 10px !important;
  }

  .wcomweb_box {
    text-align: center;
  }
}
