/* ============ HERO ============ */
:root {
  --hero-indent: 20%;          /* même valeur que .hero__inner padding-left */
  --container-max: 1200px;     /* largeur max du contenu (à adapter) */
}



.hero.hero--nacellessurchenilles,
.hero.hero--chargeusessurchenilles,
.hero.hero--chargeusessurroues
.hero.hero--minipelles
.hero.hero--broyeursradiocommandes
.hero.hero--plateformesdetransport
.hero.hero--remorques 
{
  position: relative;
  min-height: clamp(300px, 55vh, 300px);
  display: flex;
  align-items: center;    
  color: #00314c;
  font-size: 60px;          
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}


/* Bloc interne pour placer le H1 */
.hero__inner {
  width: 100%;
  display: flex;
  flex-direction: column;   
  align-items: flex-start;
  padding-left: var(--hero-indent);
  position: relative;
  z-index: 2;
}

/* Titre */
.hero__inner h2{
  margin: 0;
  font-size: 50px;
  letter-spacing: 1px;
  color: #fff;   
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;  
  font-family: Coolvetica;
}

.hero__inner h1{
  margin: 0;
  font-size: 40px;
  letter-spacing: 1px;
  color: #fff;   
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;  
  font-family: Coolvetica;
}

.hero__intro{
  margin-top: 18px;
  max-width: 800px;
  font-size: 20px;      
  line-height: 1.6;
  color: rgba(255,255,255,.95);
  font-weight: 100;
}

/* petite barre orange collée au H1 */
.hero__inner h1::before {
  content: "";
  width: 6px;
  height: 50px; 
  background: #f15826;
  border-radius: 3px;
}

/* Un peu d’air sous le hero */
.hero + *{
  margin-top: clamp(24px, 4vw, 48px);
}

/* Bloc commun */
.hero {
    position : relative;
    height: 300px;                  /* même hauteur pour tous */
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 87, 139, 0.45); /* bleu foncé transparent */
    z-index: 1;
}

/* Titre dans le hero */
.hero h1,
.hero .section-title { 
  margin: 0; 
}

.para_produits {
  margin-top: 12px;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}


/* ========================= */
/* HERO ACCUEIL - RESPONSIVE */
/* ========================= */

@media (max-width: 1024px) {
    .hero-video {
        height: 80vh;
    }

    .hero-video__content_container {
        width: min(800px, 100% - 40px);
    }

    .hero-video__content_container h1 {
        font-size: 48px;
    }

    .hero-video__content_container p {
        font-size: 18px;
    }
}

@media (max-width: 430px) {
    /* mode mobile */


    .hero-subtitle {
        text-align: center;
    }

    .hero__intro{
        margin-top: 12px;
        max-width: 100%;
        font-size: 14px;      
        line-height: 1.55;
        color: rgba(255,255,255,.95);
        font-weight: 100;
        opacity: .95;
    }

    .hero__inner {
    padding: 26px 18px;   
    }

    .hero__inner h1 {
    margin-top: 25px;
    font-size: 20px;     
    line-height: 1.05;
    font-weight: 300;
    }

    .hero-video {
        max-height: 400px;
    }

    .hero-video__content_container {
        top: 30%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 100%;
        padding: 0 16px;
    }

   .hero-video__content_container h1 {
    font-size: 45px !important;
    font-weight: 200;
    margin: 0 0 14px;
    color: #f15826;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}


    .hero-video__content_container p {
        font-size: 20px !important;
        max-width: 100%;
    }


    .hero.hero--nacellessurchenilles,
    .hero.hero--chargeusesurchenilles,
    .hero.hero--chargeusesurroues,
    .hero.hero--minipelles,
    .hero.hero--broyeursradiocommandes,
    .hero.hero--plateformesdetransport,
    .hero.hero--remorques {
        height: 100px !important;          
        min-height: 250px !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;     
        display: flex;
        align-items: center;                 
    }


  .hero__inner h1::before {
  content: "";
  width: 6px;
  height: 30px; 
  background: #f15826;
  border-radius: 3px;
}

.para_produits {
    font-size: 14px;
    line-height: 1.6;
    max-width: 350px;
  }

}