:root {
  --noir: #000;
  --blanc: #fff;
}

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

body {
  font-family: "Raleway", sans-serif;
  background: var(--noir);
  color: var(--blanc);
  overflow-x: hidden;
}

/* =========================
   HEADER & NAV
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: var(--noir);
  box-shadow: 0 3px 0 var(--noir);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
}

/* ----------------------------------
   Styles du logo (Conteneur H1)
   ---------------------------------- */
.logo {
  font-size: 0; 
  color: var(--blanc);
  letter-spacing: 1px;
  font-weight: 700;
  display: flex; 
  align-items: center;
}

/* Masque le texte pour laisser place à l'image */
.logo .logo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Styles de l'image du logo */
.logo .logo-img {
    height: 50px; 
    width: auto;
    display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

/* Soulignement animé */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--blanc);
  transition: width 0.3s ease;
}

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

/* Garde le soulignement actif */
.nav-links a.active::after {
  width: 100%;
}

/* 🍔 Styles pour le bouton Hamburger */
.hamburger-menu {
  display: none; 
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101; 
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
}

/* Styles des 3 barres horizontales */
.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blanc);
  border-radius: 2px;
  margin: 4px 0;
  transition: all 0.3s ease-in-out;
}


/* =========================
   HERO VIDEO (Optimisé pour la double source)
========================= */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  /* Styles partagés par les deux vidéos */
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute; /* Permet la superposition */
  top: 0;
  left: 0;
}

/* Par défaut (Desktop) : La vidéo mobile est masquée */
.hero-video-mobile {
  display: none;
}

/* =========================
   PROTECTION ANTI-TÉLÉCHARGEMENT & CONTROLS
========================= */
/* Empêche le clic droit, l'appui long et l'apparition des contrôles natifs */
video, img {
    pointer-events: none;
}

video::-webkit-media-controls {
    display:none !important;
}
/* ========================= */


/* =========================
   SECTION PRÉSENTATION
========================= */
.presentation {
  background: var(--blanc);
  color: var(--noir);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 150px 8%;
  flex-wrap: wrap;
  gap: 60px;
}

.text-left {
  flex: 1;
  min-width: 280px;
}

.text-left h2 {
  font-size:3rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.text-right {
  flex: 1;
  min-width: 280px;
}

.text-right p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

/* =========================
   RÉALISATIONS
========================= */
.realisations {
  display: flex;
  width: 100%;
  height: 100vh;
  /* Fond noir */
  background: var(--noir); 
}

.realisations-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.4s ease;
}

.realisations-item:hover {
  flex: 1.2;
}

/* Image de fond et vidéo */
.real-img,
.real-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
}

.real-video {
  opacity: 0;
}

/* Titre centré light */
.realisations-item h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--blanc); 
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

/* =========================
   SECTION GÉNÉRIQUE
========================= */
.section {
  padding: 120px 10%;
  /* Couleur de base pour les sections APRES Réalisations */
  background: var(--blanc); 
  color: var(--noir); 
  text-align: center;
}

/* RÈGLE SPÉCIFIQUE pour garder la section À PROPOS en noir */
#apropos {
  background: var(--noir);
  color: var(--blanc);
}

/* =========================
   BOUTON CONTACT (NOUVELLE MÉTHODE : Contour Progressif)
========================= */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Taille du titre réduite de moitié */
.contact-section h2 {
  font-size: 1.25rem; 
  margin-bottom: 40px;
}

/* ----------------------------------
   Styles du bouton 'btn-contact-nouveau'
   ---------------------------------- */

.btn-contact-nouveau {
    /* Conteneur principal (le lien <a>) */
    position: relative; 
    display: inline-block;
    padding: 20px 50px; 
    
    background-color: var(--blanc);
    /* ÉTAT 1 : BORDURE BLANCHE (invisible sur fond blanc) */
    border: 1px solid var(--blanc); 
    border-radius: 0; 
    
    color: var(--noir); 
    /* Taille du texte doublée */
    font-size: 2.2rem; 
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    
    /* Transitions pour les couleurs de fond/texte */
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1; 
    outline: none;
}

/* 1. Pseudo-élément pour l'effet de contour progressif (simulé) */
.btn-contact-nouveau::before {
    content: '';
    position: absolute;
    /* Décalage léger du pseudo-élément pour qu'il soit bien visible */
    top: -3px; 
    left: -3px;
    /* Taille légèrement supérieure au bouton pour le contour */
    width: calc(100% + 6px); 
    height: calc(100% + 6px);
    
    border: 2px solid var(--noir);
    box-sizing: border-box;
    
    /* État initial : contour masqué */
    transform: scale(0.9); /* Plus petit */
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 0; /* Reste derrière le bouton principal (z-index: 1) */
}

/* 2. ETAT HOVER : Affichage et dessin du contour */
.btn-contact-nouveau:hover::before {
    transform: scale(1); /* Taille normale (contour "dessiné") */
    opacity: 1;
}

/* 3. ETAT CLICK (via JS) : Changement de couleur */
.btn-contact-nouveau.active-click {
    background-color: var(--noir);
    color: var(--blanc);
}

/* =========================
   SECTION CLIENTS
========================= */
.clients {
  /* Fond blanc et texte noir (correct pour les sections après À PROPOS) */
  background: var(--blanc); 
  color: var(--noir); 
  padding: 100px 8%;
  text-align: center;
}

.clients h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: center;
}

.clients-logos img {
  height: 60px;
  filter: grayscale(100%); 
  transition: filter 0.3s ease, transform 0.3s ease;
}

.clients-logos img:hover {
  filter: grayscale(0%);
  transform: translateY(-5px);
}

/* =========================
   SECTION À PROPOS DÉTAILLÉE
========================= */
.apropos-section {
    padding: 100px 10%;
}

.apropos-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.apropos-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
}

.apropos-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Les styles pour .equipe-expertise et .equipe-expertise li::before ne sont plus utilisés 
   dans le HTML mais sont conservés ici au cas où vous les réintroduiriez */
.equipe-expertise {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.equipe-expertise li {
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.equipe-expertise li::before {
    content: '>>'; 
    color: var(--blanc);
    position: absolute;
    left: 0;
}

.final-motto {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
}

hr {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    margin: 60px 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  /* Menu Hamburger (visible) */
  .hamburger-menu {
    display: block;
  }

  /* Liens de navigation (cachés par défaut) */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--noir);
    transform: translateX(100%); /* Masqué hors écran */
    transition: transform 0.4s ease-in-out;
  }

  /* Afficher les liens quand le menu est ouvert */
  .header.menu-open .nav-links {
    transform: translateX(0); /* Affiché */
  }

  /* Animation de la croix */
  .header.menu-open .hamburger-menu .bar:nth-child(2) {
    opacity: 0;
  }
  .header.menu-open .hamburger-menu .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header.menu-open .hamburger-menu .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* LOGIQUE VIDÉO MOBILE : Masque la desktop, affiche la mobile */
  .hero-video-desktop {
    display: none !important;
  }
  
  .hero-video-mobile {
    display: block !important;
  }

  /* Section Présentation */
  .presentation {
    flex-direction: column;
    text-align: left;
  }

  .text-left h2 {
    font-size: 2.4rem;
  }

  /* Section Réalisations (Correction de la visibilité) */
  .realisations {
    flex-direction: column;
    height: auto;
  }

  .realisations-item {
    height: 60vh;
    min-height: 400px; 
  }
}

@media (max-width: 768px) {
  .clients-logos {
    gap: 30px;
  }

  .clients-logos img {
    height: 50px;
  }
}