.main-content {
  max-width: 100vw;
  overflow-x: hidden;
  height: max-content;
}

.principle-icon {
  height: 2em;
  display: inline-block;
  width: 2em;
  text-align: center;
  fill: var(--main-color);
}

.news-cards img {
  height: 16em;
  width: 100%;
  object-fit: cover;
  display: block;
  object-position: center center;
}

.post-img-holder img {
  display: block;
  max-height: 40em;
  width: 100%;
  max-width: 60em;
  margin: 0 auto;
  object-fit: cover;
}

.no-jobs-message,
.error-message {
  display: flex;
  justify-content: center;
  width: 100%;
}

#job-details span {
  color: #f5ba4b;
  margin-right: 0.3em;
  min-width: 7em;
}

#job-opening-form {
  padding: 1em;
}

/* Hide the black logo by default */
/* #nav-logo-black {
  display: block;
} */

/* When the navbar is dark, hide the white logo and show the black logo */
.navbar-dark #nav-logo-white {
  display: none !important;
}
.navbar-dark #nav-logo-black {
  display: block !important;
}

.realisation-card {
  margin-top: 40px;
}

.card-image-wrapper {
  height: 200px;
  margin-bottom: 35px;
  overflow: hidden;
  border-radius: 1px;
  position: relative;
}

.card-image-wrapper:hover {
  box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.75);
  position: relative;
}

.card-image-wrapper:hover::after {
  content: 'Cliquez ici pour plus de détails';
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  height: max-content;
  padding: 4px 10px;
  background-color: #ffffffad;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
}

.card-image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.zoom-cursor {
  /* cursor: url('../img/icon-fills/icon-magnifying-glass-plus.svg'), auto; */
  cursor: zoom-in;
}

/* .info-cursor {
  cursor: url('../img/icon-strokes/icon-info.svg'), auto;
} */
/* .card-image-wrapper img:hover {
  box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.75);
} */

.realisation-card-body {
  padding: 1.5rem;
}

.realisation-card-body p {
  text-align: justify;
}

.bg-gray {
  background: #f8f9fa;
}

.strength-card:nth-child(4),
.strength-card:nth-child(5),
.strength-card:nth-child(6) {
  margin-top: 60px;
}

.img-effect-solid-custom {
  padding-left: 12%;
  padding-right: 8%;
}

.img-effect-solid-custom:before {
  content: '';
  position: absolute;
  width: 80%;
  height: 100%;
  bottom: -28px;
  right: 2px;
  z-index: 1;
  background-color: #eff0f0;
}

.map-wrapper {
  min-height: 490px;
  width: calc(100vw - 40px) !important;
  max-width: 880px;
  margin-inline: auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.map-wrapper .map-iframe {
  width: 100%;
  position: relative;
  top: -69px;
  height: 480px;
  border: none;
  border-radius: 12px;
}

@media only screen and (max-width: 640px) {
  .map-iframe-container {
    padding: 0px 10px;
    margin: 0;
  }

  .map-wrapper {
    width: 100%;
    max-height: calc(400px - 70px);
  }

  .map-wrapper .map-iframe {
    width: 100%;
    position: relative;
    top: -69px;
    height: 400px;
    max-width: calc(100vw - 40px);
    border: none;
    border-radius: 12px;
  }
}
/* .map-wrapper::after {
  content: '';
  position: absolute;
  background-color: #fff;
  width: 100%;
  height: 69px;
  top: 0;
  left: 0;
} */

.bg-image {
  background-image: url('../img/home-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.btn-custom {
  border-width: 2px;
}

.btn-custom:hover {
  color: #fff !important;
  border-color: rgb(174 30 30);
  border-width: 2px;
}

.svg-diag-wrapper {
  max-width: 1200px;
  width: 100%;
  /* height: 600px; */
  display: grid;
  place-items: center;
}

.svg-diag-wrapper img {
  max-width: min(calc(100vw - 60px), 1100px);
}

@media only screen and (min-width: 1120px) {
  .svg-diag-wrapper img {
    position: relative;
    right: -55px;
  }
}

/*  */
.engagment-section,
.securite-section {
  height: 560px;
  max-width: 1200px;
  position: relative;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.securite-section {
  padding-top: 40px;
  height: 460px;
  align-items: start;
}

.engagment-section .content,
.securite-section .content {
  width: 100px;
  padding: 8px;
  box-sizing: border-box;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #343a40;
  color: #fff;
  border: 2px solid #343a40;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.engagment-item,
.securite-item {
  transform-origin: center;
  transition: 0.5s;
  position: absolute;
  width: 190px;
  height: 100px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 4px solid #f3c56d;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #6c757d !important;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.securite-item:nth-child(1) {
  left: 120px;
  top: -20px;
}

.securite-item:nth-child(2) {
  left: 40px;
  top: 126px;
}

.securite-item:nth-child(3) {
  left: -220px;
  top: 126px;
}

.securite-item:nth-child(4) {
  left: -300px;
  top: -20px;
}

.wrapper {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 8px);

  transition: 0.5s;
  transform-origin: center;
  /* background: blue; */
  width: 20px;
  height: 20px;
}

.securite-section .wrapper {
  position: absolute;
  top: calc(20% - 10px);
  left: calc(50% - 8px);

  transition: 0.5s;
  transform-origin: center;
  /* background: blue; */
  width: 20px;
  height: 20px;
}

.selection-off {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

@media only screen and (max-width: 640px) {
  .engagment-item,
  .securite-item {
    height: 80px;
    min-width: 105px;
    padding: 8px;
    font-size: 12px;
    font-weight: 400;
  }

  .securite-item {
    height: 80px;
    width: calc(calc(100vw / 2) - 120px);
    min-width: auto;
    padding: 8px;
    font-size: 12px;
    font-weight: 400;
  }

  .securite-item:nth-child(1) {
    top: -20px;
    left: 95px;
  }

  .securite-item:nth-child(2) {
    top: 90px;
    left: 60px;
  }

  .securite-item:nth-child(3) {
    top: 90px;
    left: -160px;
  }

  .securite-item:nth-child(4) {
    top: -20px;
    left: -200px;
  }

  .controls .content {
    width: 80px;
    padding: 3px;
    font-weight: 500;
    font-size: 12px;
  }
}

/*  */

.organigram {
  height: 680px !important;
}

.organigram #surface1 {
  transform: scale(0.87) translate(10px, -75px);
}

.justify-list-item {
  width: 100%;
  max-width: 250px;
}

.list-el-title {
  min-width: 150px;
}

.list-el-title-2 {
  min-width: 155px;
}

.securite-diag-container {
  width: 100%;
  display: grid;
  place-items: center;
  padding-block: 60px 120px;
  padding-inline: 20px;
}

#iframe-container {
  padding-top: 140px;
  position: relative;
}

#iframe-container::after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
}

.news-iframe {
  width: 100%;
  max-width: 1200px;
  padding-inline: 20px;
}

.juicer-feed {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.j-stacker-wrapper {
  margin-top: 110px;
}

.custom-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--main-color);
  font-weight: 500;
  font-size: 15px;
  display: grid;
  place-items: center;
  padding: 0;
}

@media (min-width: 1400px) {
  .histoire-text {
    width: 550px;
  }

  .histoire-text li {
    width: max-content;
  }
}

.scale075 {
  max-width: 315px;
  margin-inline: auto;
}

.juicer-feed {
  position: relative;
}

.juicer-feed::after {
  content: '';
  width: 180px;
  height: 100%;
  background: #fff;
  position: absolute;
  left: 0;
  top: 0;
}

.mainImage {
  /* width: 100%; */
  margin-inline: auto;
  height: auto;
  object-fit: contain;
}

.img-zoom {
  transition: 200ms ease-in-out;
  /* cursor: zoom-in; */
  position: relative;
  cursor: url('../img/icon-strokes/icon-info.svg'), auto !important;
}

.img-zoom:hover::after {
  content: '';
  background-image: url('data:image/svg+xml,%3Csvg%20stroke%3D%22white%22%20fill%3D%22none%22%20stroke-width%3D%222%22%20viewBox%3D%220%200%2024%2024%22%20aria-hidden%3D%22true%22%20height%3D%221em%22%20width%3D%221em%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4%206a2%202%200%20012-2h2a2%202%200%20012%202v2a2%202%200%2001-2%202H6a2%202%200%2001-2-2V6zM14%206a2%202%200%20012-2h2a2%202%200%20012%202v2a2%202%200%2001-2%202h-2a2%202%200%2001-2-2V6zM4%2016a2%202%200%20012-2h2a2%202%200%20012%202v2a2%202%200%2001-2%202H6a2%202%200%2001-2-2v-2zM14%2016a2%202%200%20012-2h2a2%202%200%20012%202v2a2%202%200%2001-2%202h-2a2%202%200%2001-2-2v-2z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background-position: center;
  background-size: 22px;
}

@media screen and (min-width: 600px) {
  .img-zoom:hover {
    transform: scale(1.4);
    cursor: zoom-in;
    position: relative;
  }
}

@media screen and (min-width: 1100px) {
  .img-zoom:hover {
    transform: scale(2);
    cursor: zoom-in;
    position: relative;
  }
}

/*  */

#galleryModal .close {
  background: #ffffff;
  border-radius: 0.3rem;
  color: #000000;
  height: 32px;
  line-height: 22px;
  opacity: 1;
  padding: 5px;
  position: absolute;
  right: 1px;
  top: 0px;
  width: 28px;
  z-index: 2;
}

#galleryModal .close:not(:disabled):not(.disabled):focus,
#galleryModal .close:not(:disabled):not(.disabled):hover {
  outline: none;
  opacity: 1;
}

#carouselGallery img {
  height: auto;
  object-fit: cover;
  width: 99.99%;
}

.carousel-control-prev {
  left: -110px !important;
}

.carousel-control-next {
  right: -110px !important;
}

.sk-ww-linkedin-page-post {
  max-width: 1200px;
  margin-inline: auto;
  padding-top: 120px;
}

.tutorial_link {
  position: relative;
}

.sk-linkedin-page-post-profile-info {
  display: none;
}

.tutorial_link::after {
  width: 100%;
  height: 100%;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 9;
  cursor: default;
  pointer-events: none;
}

.attrRow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.attrRowName {
  margin: 0;
  font-size: 13px;
  width: max-content;
  min-width: 135px;
  text-align: left;
  position: relative;
}

.attrRowName::after {
  content: ':';
  position: absolute;
  right: 0;
}

.offer-card-text-content {
  max-width: 100%;
  max-height: 110px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  /* overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; */
}

/*  */

.offer-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */

  place-items: center;
}

/* Modal Content */
.modal-card {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 6px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

#offer-modal-content {
  border: none !important;
}

#offer-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/* 1. CORRECTION DU DÉBORDEMENT HORIZONTAL (Bande blanche à droite) */
html,
body {
    overflow-x: hidden !important; 
    width: 100%;
}

/* 2. CORRECTION DE LA VISIBILITÉ DU BOUTON HAMBURGER SUR MOBILE */
/* Cible les écrans inférieurs à 1200px, typique des templates basés sur Bootstrap */
@media (max-width: 1199.98px) { 
    /* Force l'affichage du bouton Hamburger (navbar-toggler) */
    .navbar-toggler {
        display: block !important; 
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1060; /* Assure qu'il est au-dessus de tout */
    }
    
    /* Assure que la barre de navigation est au-dessus des autres sections */
    .navbar {
        z-index: 1050; 
    }
}

/* --- CORRECTIONS ANTI-DEBORDEMENT V3 (Maximale) --- */

/* 1. Correctif de sécurité global contre le défilement horizontal */
body, html {
    overflow-x: hidden !important; 
}

/* 2. Force la coupure des mots longs sur tous les conteneurs de colonnes */
.container, .row, [class*="col-"], h2, p, ul, li {
    word-break: break-word !important; 
    overflow-wrap: break-word !important;
}

/* 3. Correction structurelle ULTIME pour la liste d'informations de projet */
.list-iconed-item {
    /* Assure qu'il se comporte comme un bloc et utilise toute la largeur */
    display: block !important; 
    width: 100% !important; 
    /* Permet le retour à la ligne (règle la plus importante ici) */
    white-space: normal !important; 
    /* Cache tout ce qui dépasserait (dernière sécurité) */
    overflow: hidden !important; 
    margin-bottom: 0.5rem; 
}

/* 4. Force la coupure de mot sur TOUT le contenu DANS la liste (y compris le texte de la valeur) */
.list-iconed-item * { 
    white-space: normal !important; /* Répète l'instruction sur tous les enfants */
    word-break: break-word !important; 
    overflow-wrap: break-word !important;
}

/* 5. Garde la mise en forme du titre */
.list-iconed-item .list-el-title {
    display: inline-block;
    flex-shrink: 0; 
    margin-right: 0.5rem; 
    font-weight: bold;
    /* On permet la coupure pour le titre aussi, au cas où un très long titre arriverait */
    word-break: break-word !important; 
}

/* --- Correction de l'apparence du fond de la modale de la galerie --- */

.modal-backdrop.show {
    /* Utilise une couleur blanche (255, 255, 255) avec un canal alpha de 0.8 */
    background-color: rgba(255, 255, 255, 0.8) !important; 
}
/* S'assure que la modale elle-même n'interfère pas avec la transparence du fond. */
#galleryModal {
    background-color: transparent !important; 
}

/* --- INDICATEUR DE SWIPE (CENTRE, 1/3 ECRAN, ESTHÉTIQUE) --- */
.swipe-indicator-message {
    display: none;
}

@media (max-width: 1199.98px) { 
    
    .swipe-indicator-message {
        position: fixed;
        /* Centrage vertical et horizontal */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        
        /* Dimensions : Largeur 90% (pour ne pas toucher les bords) et Hauteur 1/3 (33vh) */
        width: 90%; 
        height: 33vh; 
        
        /* ESTHÉTIQUE : Effet "Carte moderne" */
        background: rgba(0, 0, 0, 0.75); /* Fond sombre */
        backdrop-filter: blur(8px); /* Effet de flou sur l'arrière-plan */
        border-radius: 25px; /* Coins bien arrondis */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Ombre portée pour le relief */
        border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
        
        color: #fff;
        z-index: 9999; 
        
        /* Animation d'apparition/disparition */
        opacity: 0; 
        transition: opacity 0.5s ease-out; 
        
        /* CRUCIAL : Permet de cliquer/swiper au travers */
        pointer-events: none; 
        touch-action: none; 

        /* Alignement du contenu */
        display: flex;
        justify-content: center; 
        align-items: center; 
        flex-direction: column; /* Optionnel : mettez 'row' si vous préférez les flèches à côté */
        gap: 15px;
    }

    /* Conteneur pour aligner flèches et doigt sur la même ligne */
    .swipe-content-wrapper {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    /* Style de l'icône de main */
    .swipe-indicator-message .swipe-hand-icon {
        font-size: 3.5rem; /* Doigt bien visible */
        color: #fff;
        display: inline-block;
        animation: pulse 2s infinite; 
    }

    /* Styles des flèches latérales */
    .swipe-indicator-message .swipe-arrow {
        font-size: 2.5rem; 
        color: #f5ba4b; /* Petite touche de couleur (votre jaune) ou #fff */
        display: inline-block;
        animation: swipeArrowAnim 1.8s ease-in-out infinite; 
    }

    /* Animation de la flèche Gauche */
    .swipe-indicator-message .swipe-arrow.left {
        animation-delay: 0.2s;
    }

    /* Animations (inchangées) */
    @keyframes swipeArrowAnim {
        0% { transform: translateX(0); opacity: 0.5; } 
        30% { transform: translateX(-15px); opacity: 1; }
        50% { transform: translateX(15px); opacity: 1; }
        80% { transform: translateX(0); opacity: 0.5; }
        100% { transform: translateX(0); opacity: 0.5; }
    }

    @keyframes pulse {
        0% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.8; transform: scale(0.95); } 
        100% { opacity: 1; transform: scale(1); }
    }

    .swipe-indicator-message.fade-out {
        opacity: 0 !important;
    }
}

/* --- GESTION DE L'EN-TÊTE ACTUALITÉS (PC vs MOBILE) --- */

/* 1. VERSION ORDINATEUR (Par défaut) */
.mobile-news-intro {
    display: none; /* Masqué sur PC */
}

/* Sur PC, on pousse le widget vers le bas pour qu'il ne soit pas caché par la navbar */
.sk-ww-linkedin-page-post {
    padding-top: 140px !important; 
}


/* 2. VERSION MOBILE (Tablettes et Téléphones) */
@media (max-width: 1199.98px) { 
    
    /* Afficher le texte "Actualité LinkedIn" */
    .mobile-news-intro {
        display: block;
        padding-top: 130px; /* Espace pour descendre sous la navbar mobile */
        padding-bottom: 20px; /* Petit espace avant le début du widget */
    }

    /* Sur mobile, on retire l'espace du widget car c'est le texte au-dessus qui fait l'espace */
    .sk-ww-linkedin-page-post {
        padding-top: 0 !important; 
    }
}
/* --- NOUVELLE GESTION DU HEADER MOBILE (LOGO + LABEL LINKEDIN) --- */

/* Masquer le label LinkedIn dans la navbar par défaut (sur PC) */
.linkedin-news-label-nav {
    display: none;
}

/* Sur PC, le widget a besoin d'espace (140px) pour ne pas être caché par la navbar */
.sk-ww-linkedin-page-post {
    padding-top: 140px !important; 
}

@media (max-width: 1199.98px) { 
    
    /* Sur mobile, le header est plus grand à cause du label, donc on donne plus de padding au widget */
    .sk-ww-linkedin-page-post {
        padding-top: 180px !important; /* Ajuster cette valeur pour que le widget commence juste sous le header fixe */
    }

    .navbar-header-mobile-flex {
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        justify-content: center; 
        height: 100%; 
    }

    /* Supprimer les paddings Bootstrap du logo (navbar-brand) pour centrer le tout */
    .navbar-header-mobile-flex .navbar-brand {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 5px !important; 
        margin-bottom: 5px !important;
    }

    /* Afficher le label LinkedIn dans la navbar et corriger son alignement */
    .linkedin-news-label-nav {
        display: flex !important;
        align-items: center;
        gap: 8px; 
        
        /* Alignement vertical final sous le logo */
        margin-top: -15px; 
        margin-left: 20px; 
    }

    .linkedin-news-label-nav span {
        font-size: 0.8rem; 
        color: #333; /* Couleur assortie au logo (noir/gris) */
        font-weight: 500;
    }

    /* Ajustement du bouton toggler (menu burger) */
    .navbar-toggler {
        margin-top: 15px !important; 
    }
}