:root {
    --primary-gray: #686868;
    --secondary-gray: #d3d3d3;
    --hover-gray: #c0c0c0;
    --dark-gray: #555555;
    --white: #ffffff;
    --text-gray: #c4c4c4;
    --accent-color: #ff1100;
    --rouge-pretitle : #ff1100 ;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #4e4f53; /* mets EXACTEMENT la couleur de fond de ton site */
  height: 100%;
  overscroll-behavior-y: none;
}

body {
    min-height: 100svh; /* gestion dynamique de la hauteur */
    min-height: 100dvh;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: transparent;
}

body {
    min-height: calc(var(--vh, 1vh) * 100);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/assets/images/background.png"); /* adapte le chemin */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: 
        linear-gradient(to bottom, rgba(95, 96, 99, 0) 50%, rgba(95, 96, 99, 0.8) 100%),
        rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s ease, transform 2s ease;
}
  
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Début du Header */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /*Layout stable */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  box-sizing: border-box;

  /*GLASS */
  background: rgba(255, 255, 255, 0.22); /* plus clair */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nav-buttons-wrapper{
  position: absolute;
  left: 50vw;                 /* centre sur l'écran, pas sur le parent */
  transform: translateX(-50%);

  top: 50%;
  transform: translate(-50%, -50%); /* centre vertical + horizontal */

  display: flex;
  justify-content: center;

  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 50px;
  padding: 10px 25px;
  border: 1px solid rgba(255,255,255,0.12);

  z-index: 2;
}

.nav-buttons-wrapper:hover {
  background-color: rgba(20, 20, 20, 0.50);
}

.nav-buttons {
    display: flex;
    list-style-type: none;
}

.nav-buttons li {
    margin-left: 25px;
}

.nav-buttons li a {
  display: block;
  color: rgba(255,255,255,0.92); /* ✅ lisible sur image */
  text-decoration: none;
  font-size: 18px;
  padding: 12px 20px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-buttons li a:hover {
  background-color: rgba(255,255,255,0.12);
  color: #ffffff;
  transform: scale(1.05);
  text-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

nav.is-scrolled .nav-buttons li a {
  color: rgba(255,255,255,0.95);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;

  padding: 8px 12px;
  border-radius: 14px;
}

.logo img {
    max-width: 165px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(10deg);
}

.burger {
    display: none;
}

/* Responsive header */

@media (max-width: 768px) {
    nav {
        padding-top: max(env(safe-area-inset-top, 0px), 30px);
    }
      
    .navbar-container {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        position: relative;
    }
  
    /* Logo centré */
    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
  
    .logo img {
        max-width: 100px;
        height: auto;
    }
  
    /* ---------- BURGER ROND ÉLÉGANT ---------- */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        width: 50px;
        height: 50px;

        background-color: var(--dark-gray);
        border-radius: 50%;
        border: 1px solid #444;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);

        cursor: pointer;
        position: absolute;
        top: max(env(safe-area-inset-top, 0px), 28px);
        right: 18px;
        z-index: 50;
        padding: 0;
    }

    .burger span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #e0e0e0;
        border-radius: 10px;
        margin: 3px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* Animation burger → croix */
    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
  
    /* ---------- MENU MOBILE ---------- */
    .nav-buttons{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: center;

        /* Forcer le rendu (iOS/Safari + certains cas Chrome) */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: backdrop-filter;
        isolation: isolate;

        padding: 22px 0;
        display: none;

        /* IMPORTANT : doit passer au-dessus du contenu */
        z-index: 1001;
    }

    .nav-buttons::before{
        content:"";
        position: absolute;
        inset: 0;
        background: rgba(73, 73, 73, 0.95);
        pointer-events: none;
    }

    .nav-buttons > *{
        position: relative;
        z-index: 1;
    }
  
    .nav-buttons.active {
        display: flex;
    }

  
  .nav-buttons li {
    margin: 10px 0;
    opacity: 0;
    transform: translateY(10px);
  }

  .nav-buttons li a {
    font-size: 1.1rem;
    padding: 10px 15px;
    display: block;
  }

  .nav-buttons.active li {
    animation: menuItemIn 0.35s ease forwards;
  }

  
  .nav-buttons.active li:nth-child(1) {
    animation-delay: 0.25s;
  }

  .nav-buttons.active li:nth-child(2) {
    animation-delay: 0.35s;
  }

  .nav-buttons.active li:nth-child(3) {
    animation-delay: 0.45s;
  }

  .nav-buttons.active li:nth-child(4) {
    animation-delay: 0.55s;
  }
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fin du Header */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    font-size: 16px;
    background-color: var(--dark-gray);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--hover-gray);
}

@media (max-width: 768px) {
    #scrollTopBtn {
      bottom: 20px;
      right: 20px;
      padding: 12px 16px;
      font-size: 14px;
    }
}


.section-header {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-pretitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: black ; /* orange */
    position: relative;
    padding-bottom: 10px;
}

.section-pretitle::after {
    content: "";
    display: block;
    margin: 6px auto 0;
    width: 70%;
    height: 2px;
    background-color: var(--rouge-pretitle);
}

.realisation {
    padding: 80px 40px;
    padding-top: 160px;
    max-width: 1200px;
    margin: 0 auto;
}



.realisations__subtitle {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  --gap: 22px;                 /* source de vérité */
  --radius: 18px;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  padding: 12px;   
}

.carousel__track {
  display: flex;
  gap: var(--gap);
  transition: transform 350ms ease;
  will-change: transform;
}

/* 3 cartes visibles (desktop) */
.carousel__card {
  flex: 0 0 calc((100% - (2 * var(--gap))) / 3);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.carousel__card img {
  width: 100%;
  height: 360px;               /* plus “premium” */
  object-fit: cover;
  display: block;
}

/* Flèches */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(6px);
  transition: background 150ms ease, transform 150ms ease;
}

.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }

.carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Dots */
.carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.carousel__dot.is-active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.15);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__panel {
  position: relative;
  width: min(1100px, 95vw);
  height: min(720px, 85vh);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10,10,10,0.55);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* important pour garder l'image entière */
  display: block;
  background: rgba(0,0,0,0.35);
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }


/* Responsive : 1 carte */
@media (max-width: 600px) {
  .realisation {
    padding: 60px 0 40px;
    padding-top: 140px;
  }

  .section-pretitle {
    font-size: 0.8rem;
    padding: 0 20px;           /* ⬅ même marge que les autres textes */
    text-align: left;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: black;
    position: relative;
    padding-bottom: 8px;
  }

  .realisations__subtitle {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding: 0 20px;           /* ⬅ même alignement que le pretitle */
    text-align: left;
  }


  .carousel__card {
    flex: 0 0 100%;
  }

  .carousel__nav--prev { left: 4px; }
  .carousel__nav--next { right: 4px; }
}

/* Dbut du footer */

footer {
    background: rgba(255, 255, 255, 0.15); /* plus clair */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(50%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: auto;
    border-top: 3px solid var(--dark-gray);
    gap: 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

/* Titre Footer */
.footer-title {
    width: 100%;
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: whitesmoke;
}

/* Section Footer */
.footer-section {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo img {
    max-width: 200px; /* Réduction de la taille du logo */
}

.contact-info {
    margin-top: 10px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 1rem;
}

.find-us h3, .contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.find-us p {
    margin: 5px 0;
    font-size: 1rem;
}

.find-us iframe {
    margin-top: 10px;
    border-radius: 5px;
}

/* Responsive footer */

@media (max-width: 768px) {

    footer {
        padding: 40px 20px;
        text-align: left; 
    }

    .footer-content,
    .footer-section {
        align-items: flex-start; 
        text-align: left;        
    }

  
    .footer-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .contact-section p:last-of-type {
        margin-bottom: 20px; 
    }


    .footer-logo img {
        margin: 0 auto;
    }

  
    .contact-info p,
    .find-us p,
    .copyright li {
        text-align: left;
    }

    .contact-info h3,
    .find-us h3 {
        text-align: left;
        font-size: 1.1rem;
    }

    .copyright {
        text-align: left;
    }
}

.copyright {
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    color: white;
    padding: 10px;
    background-color: grey;
    border-top: none; /* Suppression de la ligne blanche */
    margin: 0;
}