: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);
}

.burger {
    display: none;
}

/* 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.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);
}

.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;
    }
}

html {
  scroll-behavior: smooth;
}

.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);
}

/* debut de la section a propos */

.apropos {
  padding: 80px 20px;
  padding-top: 160px;
  text-align: left;     /* 🔥 Alignement à gauche */
  max-width: 900px;     /* 🔥 Largeur contrôlée */
  margin: 0 auto;       /* 🔥 Centrer le bloc mais le texte est à gauche */
}

.apropos h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: left;
}

.apropos p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #c4c4c4;
  max-width: 800px;
  margin: 0 0 20px 0;  /* 🔥 Alignement propre */
  text-align: left;
}

.apropos img {
  display: block;
  margin: 30px auto;   /* 🔥 centrage image seulement */
  border-radius: 10px;
}

@media (max-width: 768px) {
    .apropos {
      padding: 60px 20px;
      padding-top: 130px;
      text-align: left;
    }
  
    .section-pretitle {
      font-size: 0.8rem;
      text-align: left;
      padding: 0 0 8px 0;
      display: inline-block;
      font-weight: bold;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: black;
      position: relative;
    }
  
    .section-pretitle::after {
      content: "";
      display: block;
      margin-top: 6px;
      width: 100px;
      height: 2px;
      background-color: var(--rouge-pretitle);
    }
  
    .apropos h1 {
      font-size: 1.6rem;
      padding: 0 5px;
      margin-bottom: 20px;
      color: var(--white);
      text-align: left;
    }
  
    .apropos p {
      font-size: 1rem;
      line-height: 1.7;
      color: var(--text-gray);
      padding: 0 5px;
      margin-bottom: 20px;
    }
  
    .apropos img {
      width: 100%;
      max-height: 260px;
      object-fit: cover;
      border-radius: 10px;
      margin-top: 25px;
    }
}
  

/* 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;
}