/* ============ HERO ============ */
:root {
  --hero-indent: 20%;          /* même valeur que .hero__inner padding-left */
  --container-max: 1200px;     /* largeur max du contenu (à adapter) */
}

/* ===========================
   HERO - BASE (toutes pages)
   =========================== */
.hero.hero--neuves,
.hero.hero--occasion,
.hero.hero--drainantes,
.hero.hero--batimentsdemontables,
.hero.hero--location,
.hero.hero--pose{
  position: relative;
  min-height: clamp(300px, 55vh, 380px);
  display: flex;
  align-items: center;          /* centre vertical */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Overlay léger pour calmer le fond (optionnel mais conseillé) */
.hero.hero--neuves::before,
.hero.hero--occasion::before,
.hero.hero--drainantes::before,
.hero.hero--batimentsdemontables::before,
.hero.hero--location::before,
.hero.hero--pose::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.30);
  z-index: 0;
}

/* ===========================
   HERO - CONTENU
   =========================== */
   
   .hero--beton {
  padding: 100px 0;
  background-image: url("../../images/hero/hero.png");
  background-size: cover;
  background-position: center;
}


.hero.hero--neuves .hero__inner{
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* H1 */
.hero.hero--neuves h1{
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.1;
  color: #00314c;             
  max-width: 30ch;            
} 

/* Sous-titre */
.hero.hero--neuves .hero__subtitle{
  margin: 0;
  font-size: 18px;             
  font-weight: 400;            
  line-height: 1.5;
  color: rgba(0,49,76,.80); 
  max-width: 75ch;
}

/* ===========================
   HERO - BASE COMMUN
   =========================== */
:root{
  --hero-indent: clamp(20px, 6vw, 90px);
  --dd-blue: #00314c;
  --dd-orange: #ff7a18;
}

.hero{
  padding: 120px 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 20vh;
  padding: 4rem 1rem;  
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
}

/* Chaque page HERO peut définir son image sans !important */
.hero.hero--neuves,
.hero.hero--occasion,
.hero.hero--drainantes{
  background-image: url("../../images/hero/hero.jpg");
  background-size: 115%;
  background-position: center 50%;
  background-repeat: no-repeat;
}


/* Conteneur interne */
.hero_inner {
  position: relative;
  max-width: 1500px;
  margin-left: clamp(80px, 12vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* H1 */
.hero_inner h1 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 28px;
  font-size: clamp(40px, 4vw, 55px);
  line-height: 1.15;
  color: var(--dd-blue);
  max-width: 30ch;
  margin-left: clamp(32px, 12vw, 250px);
}

/* Barre orange à côté du titre */
.hero_inner h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 6px;
  height: 80%;
  background: var(--dd-orange);
  border-radius: 4px;
}

/* petit texte sous le grand titre de la page */
.hero_subtitle {
  margin: 0;
  font-size: 25px;
  line-height: 1.6;
  color: rgba(20, 45, 65, 0.85);
  max-width: 85ch;
  margin-left: clamp(32px, 12vw, 250px);
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;         
}


/* Espace après le hero */
.hero + *{
  margin-top: clamp(24px, 4vw, 48px);
}


/* ========================= */
/* HERO ACCUEIL - RESPONSIVE */
/* ========================= */
@media (max-width: 600px) {


  .hero {
    padding: 16px 0;
    background-size: cover;          
    background-position: center;
  }

  .hero_inner {
    max-width: none;
    margin-left: 16px;              /* marge simple et propre */
    margin-right: 16px;
    gap: 12px;
  }

  .hero_inner h1 {
    font-size: 25px;                
    line-height: 1.15;
    max-width: 100%;
    margin: 0 0 16px;
    padding-left: 20px;    
    font-weight: 400;   
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }

  .hero_inner h1::before {
    width: 5px;
    top: 0.15em;
    height: 85%;
    border-radius: 4px;
  }

  .hero_subtitle {
    margin: 0;
    padding-left: 20px;            
    max-width: 100%;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(20, 45, 65, 0.9);
    text-align: left;  
    font-weight: 400;   
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;         
  }
}



  