/* Variables pour les couleurs et styles globaux */
:root {
    --primary-gray: #686868;
    --secondary-gray: #d3d3d3;
    --hover-gray: #c0c0c0;
    --dark-gray: #555555;
    --white: #ffffff;
    --text-gray: #c4c4c4;
    --accent-color: #ff1100;
    --rouge-pretitle : #ff1100 ;
}

/* Réinitialisation */
* {
    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);
}

.burger {
    display: none;
}
  
/* Début du Header */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  /*Layout stable */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  box-sizing: border-box;

  /*GLASS */
  background: rgba(255, 255, 255, 0.10); /* 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);
}

/* Responsive header */

@media (max-width: 768px) {
    body {
        background-size: 1200px auto;
        background-position: center top;
    }
    
    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: 1002;
        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-wrapper{
    display: none;
    }

  .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);
  }
}

.slideshow {
  position: relative;
  overflow: hidden;
}

/* Conteneur positionné */
.scroll-down.double {
  position: absolute;
  left: 50%;
  bottom: 50px; /* 🔼 remonté par rapport à ton ancien */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px; /* espace entre les flèches */
  cursor: pointer;
  z-index: 10;
  text-decoration: none;
}

/* Style des flèches */
.scroll-down.double .arrow {
  width: 20px;
  height: 20px;
  border-right: 4px solid rgba(255, 255, 255, 0.5);
  border-bottom: 4px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: arrowGlow 1.4s infinite ease-in-out, arrowMove 1.4s infinite ease-in-out;
}

/* Animation luminance alternée */
.scroll-down.double .arrow-1 {
  animation-delay: 0.2s;
}
.scroll-down.double .arrow-2 {
  animation-delay: 0.6s;
}

/* Effet lumineuse */
@keyframes arrowGlow {
  0%, 100% { border-color: rgba(255,255,255,0.3); }
  50% { border-color: rgba(255,255,255,1); }
}

/* Mouvement léger vers le bas */
@keyframes arrowMove {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(6px) rotate(45deg); }
}

/* Scroll fluide */
html {
  scroll-behavior: smooth;
}

   
/* 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;
    }
}

/* Début section Slides */
.slideshow {
    position: relative;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.text {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 2;

  /* Style premium citation */
  font-family: 'Allura', cursive;
  font-size: 3.3rem;           
  font-weight: 400;
  letter-spacing: 1.3px;        
  text-shadow: 0 4px 8px rgba(0,0,0,0.75);  
  white-space: nowrap;          
}

@media (max-width: 768px) {
    .slideshow {
        position: relative;
        max-width: 100%;
        height: 100svh;
        overflow: hidden;
    }
  
    .text {
        font-size: 1.4rem !important;   
        white-space: normal !important; 
        width: 85%;                     
        line-height: 1.4;               
        transform: translate(-50%, 35%);
        text-align: center;             
    }
  
    .slide img {
      object-position: center;
    }
}
  
.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 ;
    position: relative;
    padding-bottom: 10px;
}

.section-pretitle::after {
    content: "";
    display: block;
    margin: 6px auto 0;
    width: 70%;
    height: 2px;
    background-color: var(--rouge-pretitle);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

.Bienvenue {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    gap: 40px;
    color: var(--white);
    flex-wrap: wrap;
}

.contenu-bienvenue {
    max-width: 600px;
    text-align: left;
}

.contenu-bienvenue h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contenu-bienvenue h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.contenu-bienvenue p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.images-bienvenue {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.images-bienvenue img {
    width: 100%;
    max-width: 450px; 
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive .Bienvenue */
@media (max-width: 768px) {
    .Bienvenue {
      flex-direction: column;
      padding: 50px 20px;
      gap: 30px;
    }
  
    .bienvenue-container {
      flex-direction: column;
      gap: 30px;
      text-align: center;
    }
  
    .contenu-bienvenue {
      max-width: 100%;
    }
  
    .contenu-bienvenue h1 {
      font-size: 1.8rem;
      line-height: 1.3;
    }
  
    .contenu-bienvenue h2 {
      font-size: 1.2rem;
      margin-bottom: 15px;
    }
  
    .contenu-bienvenue p {
      font-size: 1rem;
      line-height: 1.6;
    }
  
    .images-bienvenue {
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
  
    .images-bienvenue img {
      width: 100%;
      max-width: 320px;
      height: auto;
      border-radius: 10px;
    }
}
  
.Services {
    padding: 80px 0;
    color: var(--white);
}

.services-container {
    max-width: 1200px;      
    margin: 0 auto;         
    padding: 0 40px;        
    box-sizing: border-box;
}

.services-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contenu-services {
    max-width: 600px;
    text-align: left;
    flex: 1;
    text-align: left;
}

.contenu-services h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 700;
}

.contenu-services p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.services-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
    width: fit-content;      
    margin-top: 40px;
    margin-left: auto;  
}

.services-grid .service-box:nth-child(1) {
    grid-column: 1 / -1;
    max-width: 380px;    
    margin: 0 auto 10px;           
}

.services-grid .service-box:nth-child(2),
.services-grid .service-box:nth-child(3) {
    width: 100%;
    max-width: 380px;
}

.service-box {
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    width: 100%;
    max-width: 360px;
    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);
}

.service-box img {
  width: 50px;
  height: 50px;
}


.service-box span {
    font-weight: 600;
    text-align: center;
    color: #111;
}


.service-btn {
    margin-top: 10px;
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;             
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    margin-top: auto;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}


.service-btn:hover {
    background-color: transparent;
    color: #000;
    border-color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

/* responsive .service */
@media (max-width: 768px) {

    .Services {
        padding: 50px 0x; 
    }

    .services-container {
        padding: 0 20px;  
    }

    .services-wrapper {
        flex-direction: column;
        align-items: flex-start;  
        gap: 30px;        
    }

    .contenu-services {
        max-width: 100%;
        text-align: left;
    }

    .contenu-services h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .contenu-services p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin: 0;
    }

    .service-box {
        width: 100%;
        max-width: 320px;
    }

    .service-btn {
        width: 100%;
        max-width: 320px;
        margin: 10px auto 0;
    }
}

  
.realisations {
    padding: 80px 0;
    color: var(--white);
}

.contenu-realisation {
    max-width: 600px;
    text-align: left;
    flex: 1;
    text-align: left;
}

.contenu-realisation h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 700;
}

.realisation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.contenu-realisation p {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 60px;
    text-align: left;
    margin-left: 0;
}
  
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}
  
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 350px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
  
.card:hover {
    transform: scale(1.03);
}
  
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
  
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: 2;
}
  
.card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
  
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
}
  
.card-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}
  
.card-content button {
    padding: 10px 20px;
    background-color: #ffffffcc;
    border: none;
    color: #333;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
  
.card-content button:hover {
    background-color: #fff;
}
/* Responsive Realisation */

@media (max-width: 768px) {

    .realisations {
        padding: 40px 0;
    }

    .realisation-container {
        padding: 0 20px;
    }

    .contenu-realisation h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .contenu-realisation {
        max-width: 100%;
        margin-bottom: 30px;
        text-align: left;
    }

  
    .realisations .cards {
        display: block;          
        padding: 0 20px;         
    }

  
    .realisations .card {
        display: block;
        width: 100%;             
        margin: 0 0 20px 0;      
        border-radius: 16px;
        overflow: hidden;        
        text-decoration: none;   
    }

  
    .card-background {
        aspect-ratio: 1 / 1;           
        background-size: cover;
        background-position: center;
    }

  
    .card-content {
        padding: 16px 16px 20px;
        color: #fff;             
    }
}
  
.cta-button {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

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: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}  

.footer-title {
    width: 100%;
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: whitesmoke;
}

.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;
}

.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;
}

/* 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;
    margin: 0;
}