

/* ---------------------------------------------- */
/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  padding-top: 80px; /* espace pour navbar fixe */
}

/* ---------------------------------------------- */
/* ===== VARIABLES ===== */
:root {
  --navbar-height-desktop: 80px;
  --navbar-height-tablet: 70px;
  --navbar-height-mobile: 70px;
}

/* ---------------------------------------------- */
/* ===== NAVBAR ===== */
nav, .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 25px 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.05);
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a:hover { color: #ddd; }
.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: white;
  transition: width 0.3s ease;
}
.navbar a:hover::after { width: 100%; }

.navbar .acceuil { justify-self: start; }
.navbar .center-link { justify-self: center; pointer-events: none; }
.navbar .right-link { justify-self: end; }

@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 15px 20px;
  }
  .navbar a { font-size: 18px; }
  .navbar .acceuil,
  .navbar .center-link,
  .navbar .right-link { justify-self: center; text-align: center; margin-bottom: 5px; }
}

/* ---------------------------------------------- */
/* ===== HERO / TOP IMAGE ===== */
.hero,
.top-image,
.header-image,
.hero-image,
[class*="projet"] .top-image {
  display: block;
  width: 100%;
  margin-top: var(--navbar-height-desktop);
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

/* HERO accueil */
.hero {
  margin-top: calc(var(--navbar-height-desktop) - 40px);
  height: calc(80vh - var(--navbar-height-desktop) + 40px);
}

.hero img,
.top-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero img:hover,
.top-image:hover { transform: scale(1.05); }

/* ---------------------------------------------- */
/* ===== IMAGE PROJETS ===== */
.projet-8 .top-image { height: calc(100vh - 60px); padding-top: 60px; object-fit: cover; }
.projet-8 .top-image:hover { transform: scale(1.05); }
.projet-8 .gallery-text { padding: 0 20px; }

/* Taille projets responsive */
@media (max-width: 768px) {
  .projet-8 .top-image { height: 40vh; margin-top: 60px; }
  .projet-8 .gallery-text { padding: 0 10px; font-size: 16px; }

  .hero { height: auto; margin-top: calc(var(--navbar-height-mobile) - 20px); }
  .top-image,
  .header-image,
  .hero-image,
  [class*="projet"] .top-image {
    height: auto !important;
    object-fit: contain !important;
    margin-top: var(--navbar-height-mobile) !important;
  }
}

/* ---------------------------------------------- */
/* ===== GALERIES ===== */
.gallery-row,
.gallery-2,
.gallery-3,
.gallery-4 {
  display: grid;
  width: 100%;
  gap: 0;
}

.gallery-row { grid-template-columns: repeat(3,1fr); }
.gallery-item { width:100%; aspect-ratio:16/9; overflow:hidden; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.3s ease; }
.gallery-item img:hover { transform: scale(1.05); }

.gallery-2 { grid-template-columns: repeat(2,1fr); }
.gallery-2 img { width:100%; height:800px; object-fit:cover; transition: transform 0.3s ease; }
.gallery-2 img:hover { transform: scale(1.05); }

.gallery-3 { grid-template-columns: repeat(3,1fr); }
.gallery-3 img { width:100%; height:300px; object-fit:cover; transition: transform 0.3s ease; }
.gallery-3 img:hover { transform: scale(1.05); }

.gallery-4 { grid-template-columns: repeat(4,1fr); }
.gallery-4 img { width:100%; height:260px; object-fit:cover; transition: transform 0.3s ease; }
.gallery-4 img:hover { transform: scale(1.05); }

@media (max-width: 1024px) {
  .gallery-2 img { height: 350px; }
  .gallery-3 img { height: 250px; }
}

@media (max-width: 768px) {
  .gallery-row { grid-template-columns: repeat(2,1fr); }
  .gallery-item { aspect-ratio: 1/1; }
  .gallery-2 img { height: 200px; }
  .gallery-3 img { height: 150px; }
  .gallery-4 img { height: 200px; }
}

@media (max-width: 480px) {
  .gallery-2 img { height: 150px; }
  .gallery-3 img { height: 120px; }
  .gallery-text { font-size: 14px; padding:0 10px; }
}

/* ---------------------------------------------- */
/* ===== TEXTE GALERIE ===== */
.gallery-text {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 60px auto;
  padding: 0 20px;
  text-align: center;
  color: white;
  font-size: 18px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

/* ---------------------------------------------- */
/* ===== HERO TWO (image complète) ===== */
.hero-two {
  width: 100vw;
  height: auto;
  overflow: hidden;
  margin: 0;
  padding-top: var(--navbar-height-desktop);
  display: flex;
  justify-content: center;
}
.hero-two img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.hero-two img:hover { transform: scale(1.02); }
@media (max-width:768px) { .hero-two { padding-top: var(--navbar-height-mobile); } }

/* ---------------------------------------------- */
/* ===== A PROPOS ===== */
.page.a-propos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}
.page.a-propos h1 {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}
.page.a-propos .gauche,
.page.a-propos .droite { flex:1 1 45%; }
.page.a-propos h2 { font-size:24px; margin-bottom:15px; }
.page.a-propos p { font-size:18px; line-height:1.8; color:#ddd; }

@media (max-width:768px) {
  .page.a-propos { flex-direction: column; gap:30px; padding:30px 15px; }
  .page.a-propos h1 { font-size:28px; }
  .page.a-propos h2 { font-size:20px; }
  .page.a-propos p { font-size:16px; }
}


/* ===== GALERIE 8 IMAGES PAGE D'ACCUEIL ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 0;
  width: 100%;
}

.gallery img {
  width: 100%;
  height: auto;
  max-height: 250px;   
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE TABLETTE ===== */
@media (max-width: 1024px) {
  .gallery img {
    max-height: 200px;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); 
  }

  .gallery img {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .gallery img {
    max-height: 150px;
  }
}

/* ===== IMAGE PROJET 1 ===== */
.projet-1 .top-image {
  width: 100%;
  height: auto;
  max-height: 400px;   
  object-fit: cover;
}

@media (max-width: 1024px) {
  .projet-1 .top-image {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .projet-1 .top-image {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .projet-1 .top-image {
    max-height: 150px;
  }
}


/* ===== TITRE "PROJETS" ===== */
.titre-projets {
  width: 100%;
  text-align: center;             
  font-family: Arial, sans-serif; 
  font-weight: 200;               
  font-size: 28px;                
  color: white;
  margin: 30px auto;              
  border-bottom: 2px solid white; 
  padding-bottom: 5px;
  letter-spacing: 1px;            
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .titre-projets {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .titre-projets {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .titre-projets {
    font-size: 18px;
  }
}


/* ===== IMAGE PROJET 1 (large-image) ===== */
.large-image {
  width: 100%;        
  height: auto;       
  object-fit: cover;  
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
}

.large-image:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .large-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .large-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .large-image {
    width: 100%;
    height: auto;
  }
}



/* ===== LIENS PAGE À PROPOS ===== */
.page.a-propos a {
  color: white;             
  text-decoration: none;    
  transition: color 0.3s ease;
}

.page.a-propos a:hover {
  color: #ddd;              
}

.page.a-propos a:visited {
  color: white;             
}



/* FIX MOBILE — unifie les images irrégulières sur la page d'accueil */
@media (max-width: 768px) {
  .gallery img {
    width: 100%;
    height: 180px;           
    object-fit: cover;       
    object-position: center; 
  }
}


@media (max-width: 768px) {
  * {
    cursor: none !important;
  }
}


/* ===== SUPPRESSION TOTALE DU CURSEUR SUR MOBILE ===== */
@media (max-width: 768px) {

  html, body {
    cursor: auto !important;     /* le téléphone revient au comportement normal */
  }

  .cursor {
    opacity: 0 !important;       /* invisible */
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0) !important; /* réduit à 0 (même si le JS le bouge) */
    width: 0 !important;
    height: 0 !important;
  }
}



