/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100%;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}


/*===========================
             HERO
===========================*/
body {
  margin: 0;
  padding: 0;
  font-family: "Bebas Neue", Arial, sans-serif;
}

.mla-hero {
  position: relative;
  width: 100vw;
  height: 90vh;
  overflow: hidden;
}

.mla-hero-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* Rectangle bleu indépendant */
.mla-hero-blue {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38vw;
  height: 52vh;
  background: #5069B2;
  z-index: 2;
  display: flex;
  align-items: center;
}

/* Rectangle orange indépendant */
.mla-hero-orange {
  position: absolute;
  left: 38vw;  /* colle le orange juste à côté du bleu */
  bottom: 0;
  width: 1.5vw;
  height: 50vh;
  background: #F7B166;
  z-index: 2;
}

/* Texte dans le bloc bleu */
.mla-hero-text {
  margin-top: 8vh;
  color: #fff;
  font-size: 4vw;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: 400;
  margin-left: 5vw;
  line-height: 9vh;

}
.mla-hero-text .mla-big{
font-size: 7vw;
line-height: 9vh;
}

/* Triangle orange en bas à droite */
.mla-hero-triangle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20vw;
  height: 20vw;
  background: #F7B166;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
  z-index: 2;
}

.swiper {
      height: 110px;
      width: auto;
      overflow: hidden;
    }

   .swiper-slide {
  font-size: 4vw; 

  background: linear-gradient(to right, #F7B166 0%, #fff 50%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-transform: uppercase;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}
.slide-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.75s cubic-bezier(.6,0,.4,1), transform 0.75s cubic-bezier(.6,0,.4,1);
  will-change: opacity, transform;
}
.slide-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/*=====================================
              INTRODUCTION 
 ====================================*/

body {
  margin: 0;
  padding: 0;
  background: #fff;
}

/* Le bloc principal en ligne */
.mla-bloc {
  display: flex;
  width: 100vw;
  background: #fff;
  position: relative;
  /* pour le bandeau orange */
}

/* L'image */
.mla-image {
  display: block;
  width: 47vw;   /* adapte si besoin */
  height: 65vh;
  margin-left: 0;
  margin-top: 3vh;
  margin-bottom: 32px;
  box-shadow: none;
  z-index: 1;
}

/* Colonne texte */


/* Bandeau orange vertical à gauche du texte, qui dépasse sous l'image */
.mla-bloc::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 49vw;
  max-width: 50vw;
  height: 62vh;
  background: #F7B166;
  z-index: 0;
}
.mla-texte-bloc {
  position: relative;
  background: #fff;
  z-index: 2;
  border-left: 0;
  box-sizing: border-box;
  margin-left: 5vw;
  margin-top: 12vh;
  max-width: 50vw;
  max-height: 75vh;
}

/* Le titre MLA en bleu */
.mla-titre {
  color: #5069B2;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 6.5vw;
  letter-spacing: 1.5px;
  margin-bottom: 1vh;
  margin-top: 0;
  line-height: 1;
}

/* Le texte */
.mla-texte {
  font-family: Arial, sans-serif;
  font-size: 1.5vw;
  color: #222;
  line-height: 1.32;
  margin: 0;
  margin-right: 10vw;
  text-align: justify;
}
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(.6,0,.4,1), transform 0.7s cubic-bezier(.6,0,.4,1);
  will-change: opacity, transform;
}
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}




/*============================
          EXPERTISES
 ===========================*/
.section--expertise {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  padding: 8rem 5%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  font-size: clamp(3rem, 6vw, 4rem);
  color: #4D63AC;
  margin-bottom: 2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 colonnes fixes */
  grid-template-rows: repeat(2, 1fr);      /* 2 lignes fixes */
  gap: 4vw;
  justify-items: center;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

.expertise-grid a {
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 180px;
  height: 100%;
  margin: auto;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  border: 3px solid #F7B166;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.card p {
  font-weight: bold;
  color: #4D63AC;
  font-size: 2vh;
  margin: 0;
}

.text-center {
  text-align: center;
  margin-top: 6vh;
}

.btn--primary {
  display: inline-block;
  padding: 0.75rem 3rem;
  background: #F7B166;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
  font-size: 1rem;
}

.btn--primary:hover {
  background: #e0a354;
}



/* ================================
   SECTION IMPLANTATIONS
   ================================ */
.implantation-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  min-height:110vh ;
  overflow: none;
}

.implantation-content {
  flex: 1;
  max-width: 45%;
  z-index: 1;
  padding-left: 5.5rem;
  margin-top: -45vh;
}

.implantation-title {
  font-size: 8vw;
  color: #4D63AC;
  font-weight: 400;
  line-height: 13vh;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Bebas Neue', arial ,sans-serif;
  
}

.implantation-content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.implantation-btn {
  display: inline-block;
  background: #3AB549;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.implantation-btn:hover {
  background: #2a9440;
}

.implantation-map {
  flex: 1;
  max-width:50%;
  display: flex;
  justify-content: flex-end;
}
.implantation-map img {
  height: auto;
  object-fit: contain;
}
.carte-mobile {
  display: none;
}

.implantation-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45vw;
  height: 45vh;
  background: #4D63AC;
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  z-index: 1;
}
.implantation-shape-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50vw;
  height: 50vh;
  background: #4D63AB70;
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  z-index: 0;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
   /* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* RESPONSIVE ONLY */
@media screen and (max-width: 768px) {
  .mla-hero {
    height: 100vh;
  }
  .mla-hero-bg {
    object-fit: cover;
    object-position: 70% center;
  }
  .mla-hero-blue {
    width: 90vw;
    height: auto;
    padding: 20px;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
  }
  .mla-hero-orange {
    display: none;
  }
  .mla-hero-text {
    font-size: 12vw;
    line-height: 1.2;
    text-align: left;
    margin: 0;
  }
  .mla-hero-text .mla-big {
    font-size: 15vw;
  }
  .swiper-slide {
    font-size: 12vw;
  }
  .mla-hero-triangle {
    width: 35vw;
    height: 35vw;
  }
}

/* =========================
   Responsive INTRODUCTION
========================= */
@media screen and (max-width: 768px) {
  .mla-bloc {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }
  .mla-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  .mla-bloc::before {
    max-width: none;
  content: "";
  position: absolute;
  left: 0; top: 4vh;
  height: 28vh;
  width: 90vw;
  background: #F7B166;
  z-index: 0;
}
  .mla-texte-bloc {
    margin: 0;
    padding: 1rem;
    max-width: 100%;
  }
  .mla-titre {
    font-size: 8vw;
    text-align: center;
  }
  .mla-texte {
    font-size: 1rem;
    text-align: justify;
  }
}

/* =========================
   Responsive EXPERTISES
========================= */
@media screen and (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .card img {
    width: 100%;
  }
  .section--expertise {
    padding: 2rem 1rem;
    
  }
  .section-title {
    font-size: 2rem;
  }
}

/* =========================
   Responsive IMPLANTATIONS
========================= */
@media screen and (max-width: 768px) {
  .implantation-section {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2rem 1rem;
    min-height: auto;
    gap: 2rem;
  }

  .implantation-map {
    order: -1; /* place la carte au-dessus */
    max-width: none;
    justify-content: center;
  }

  .implantation-map img {
    width: 150%;
    height: auto;
    max-width: none;
    margin-right: 15%;
  }

  .implantation-content {
    max-width: 100%;
    padding: 0 1rem;
    margin-top: -10%;
    text-align: left; /* ✅ alignement à gauche */
  }

  .implantation-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .implantation-content p {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .implantation-btn {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .implantation-shape,
  .implantation-shape-overlay {
    display: none;
  }
}
