.navbar-nav::before {
  content: none !important;
}

/* --------------------------------------------------------------------------
   PAGE D'ACCUEIL : SECTION Work (projets) 
-------------------------------------------------------------------------- */
/* --- Alignement du titre --- */
.work_section .heading_container {
  align-items: center;
}

/* --------------------------------------------------------------------------
   PAGE D'ACCUEIL : SECTION WHO 
-------------------------------------------------------------------------- */
/* --- Fond gris sur la section who --- */
.who_section {
  background-color: #E9EEF0;
  padding: 60px 0;
}

.who_section .container {
  background: transparent;
  max-width: 1140px;
}

.who_section .heading_container {
  align-items: center;
}

/* --------------------------------------------------------------------------
   PAGE D'ACCUEIL : SECTION CLIENT Témoignages
-------------------------------------------------------------------------- */
/* --- Fond gris sur la section Client --- */
.client_section {
  background-color: #E9EEF0;
  padding: 60px 0;
}

.client_section .container {
  background: transparent; 
  max-width: 1140px;
} 

/* --- Carte centrale blanche dans la section clients --- */
.client_section .owl-carousel .center .box {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Les autres cartes gardent leur fond gris clair */
.client_section .owl-carousel .box {
  background-color: #f5f5f5;
  transition: all 0.3s ease;
}

/* Section témoignages : flèches centrées */
.client_section .carousel-wrap {
  position: relative;
  padding-bottom: 50px;
}

.client_section .owl-nav {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   PAGE D'ACCUEIL : SLIDER + HEADER SUR IMAGE DE FOND
-------------------------------------------------------------------------- */

/* Image de fond uniquement sur le slider de la page d'accueil */
body.accueil .slider_section {
  background-image: url("../images/Tignes2.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 70vh;             /* hauteur réduite (modifiable : 60–80vh selon effet désiré) */
  display: flex;
  align-items: center;
  position: relative;           /* nécessaire pour le positionnement relatif du contenu */
  padding-top: 120px;           /* évite que le texte passe sous le header */
}

/* Optionnel : un peu d'air autour du contenu dans le slider */
body.accueil .slider_section .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Header transparent superposé au slider (uniquement sur la page d'accueil) */
body.accueil .header_section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.25) !important;  /* léger voile noir translucide */
  z-index: 10;
}

/* Lisibilité du texte sur l'image de fond */
body.accueil .slider_section h1,
body.accueil .slider_section h2,
body.accueil .slider_section p {
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* Stabilisation de la hauteur du carrousel pour éviter les sauts */
body.accueil .carousel-inner {
  height: 450px;
}

body.accueil .carousel-item {
  height: 450px;
}

body.accueil .carousel-item .row {
  height: 450px;
  display: flex;
  align-items: flex-start;
  padding-top: 40px;
}

body.accueil .slider_section .detail-box {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

body.accueil .slider_section .detail-box > div {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

body.accueil .slider_section .detail-box > div > div:last-child {
  margin-top: auto;
}
/* --------------------------------------------------------------------------
   PAGE D'ACCUEIL : SLIDER Flèches du carrousel principal (home)
-------------------------------------------------------------------------- */
body.accueil .carousel-control-prev-icon,
body.accueil .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.7);
  background-size: 40%, 40%;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-image: none; /* on retire l'icône par défaut */
  position: relative;
}

body.accueil .carousel-control-prev-icon::before,
body.accueil .carousel-control-next-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
  transform-origin: center;
}

body.accueil .carousel-control-prev-icon::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

body.accueil .carousel-control-next-icon::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

body.accueil .carousel-control-prev,
body.accueil .carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

body.accueil .carousel-control-prev:hover,
body.accueil .carousel-control-next:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   PAGE D'ACCUEIL : Competences
-------------------------------------------------------------------------- */

/* Compétences : état normal + effet au survol + effet au clic (mobile) */

/* Icônes grisées par défaut */
.do_section .box .img-box img {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

/* Survol desktop : fond orange + icône en couleur */
.do_section .box:hover .img-box {
  background-color: #FE9E4C;
}
.do_section .box:hover .img-box img {
  filter: grayscale(0%);
}

/* Clic (classe .active ajoutée en JS) : même effet que :hover */
.do_section .box.active .img-box {
  background-color: #FE9E4C;
}
.do_section .box.active .img-box img {
  filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   FOOTER : bouton "Contactez-nous" + harmonisation visuelle
-------------------------------------------------------------------------- */

/* Forcer le style bouton orange pour le lien du footer */
.info_section .btn_on-hover {
  display: inline-block !important;
  background-color: #FE9E4C !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 25px !important;
  font-size: 16px !important;
  font-weight: normal !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.info_section .btn_on-hover:hover {
  background-color: #ff7b00 !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Alignement à gauche du bloc newsletter */
.info_section .detail-box {
  text-align: left;
}

/* Alignement et lisibilité du texte dans le footer */
.info_section h5 {
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

/* Espacement pour le bouton */
.info_section .btn_on-hover {
  margin-bottom: 20px;
}

/* Espacement pour la social box */
.info_section .social_box {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  padding-left: 65px;
}

.info_section .social_box a {
  display: inline-block;
}

.info_section .social_box a img {
  width: 32px;
  height: 32px;
  filter: brightness(100%);
  transition: all 0.3s ease;
}
.info_section .social_box a img:hover {
  filter: brightness(150%);
}


/* --------------------------------------------------------------------------
   PAGE PROJETS : Bloc portfolio réutilisable (image à gauche, texte à droite)
-------------------------------------------------------------------------- */
.portfolio-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 10px 0 40px 0;
  width: 100%;
}

.opensource-image {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.opensource-image img {
  width: auto;
  max-width: 200px;
  height: auto;
}

.opensource-text {
  flex: 0 0 33.33%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}

.opensource-text p {
  margin: 0 0 15px 0;
  margin-top: 0 !important;
}

/* Liste avec flèches */
.opensource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opensource-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.opensource-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #FE9E4C;
  font-weight: bold;
}

/* Style citation réutilisable */
.citation {
  color: #24343C;
  font-style: italic;
}

/* Espacement entre le titre H2 et le texte dans la page projets */
.work_section .heading_container p {
  margin-top: 35px;
}

/* H3 dans portfolio_container : centré sur desktop */
.portfolio_container h3 {
  text-align: center;
}

/* Variante du bloc portfolio avec texte plus large (60%) et image réduite (30%) */
.portfolio-block-wide .opensource-image {
  flex: 0 0 30%;
}

.portfolio-block-wide .opensource-text {
  flex: 0 0 60%;
}

/* Animation pour l'image LogoSYB (lien cliquable) */
.portfolio-block-wide .opensource-image a {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  animation: pulseAttention 2s ease-in-out infinite;
}

.portfolio-block-wide .opensource-image a:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(254, 158, 76, 0.4);
}

.portfolio-block-wide .opensource-image a:hover img {
  filter: brightness(1.1);
}

.portfolio-block-wide .opensource-image img {
  transition: filter 0.3s ease;
  cursor: pointer;
}

/* Keyframes pour l'animation d'attention */
@keyframes pulseAttention {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(254, 158, 76, 0);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(254, 158, 76, 0.6);
  }
}

/* --------------------------------------------------------------------------
  RESPONSIVE : Tablettes (768px - 1024px)
-------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Ajustement de la hauteur du carrousel pour tablettes */
  body.accueil .carousel-inner {
    height: 500px;
  }

  body.accueil .carousel-item {
    height: 500px;
  }

  body.accueil .carousel-item .row {
    height: 500px;
  }

  body.accueil .slider_section .detail-box > div {
    min-height: 450px;
  }
}

/* --------------------------------------------------------------------------
  RESPONSIVE : <768px
-------------------------------------------------------------------------- */

/* --- Compétences : 2 colonnes sur mobile (< 768px) --- */
@media (max-width: 768px) {

  /* H3 dans portfolio_container : aligné à gauche sur mobile */
  .portfolio_container h3 {
    text-align: left;
  }

  /* Hauteur fixe du carrousel sur mobile pour éviter le zoom */
  body.accueil .slider_section {
    height: 900px;
    min-height: 900px;
    max-height: 900px;
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  body.accueil .slider_section .container {
    padding-top: 40px;
  }

  body.accueil .carousel-inner {
    height: 100%;
  }

  body.accueil .carousel-item {
    height: 100%;
  }

  body.accueil .carousel-item .row {
    height: 100%;
  }

  body.accueil .slider_section .detail-box {
    height: 580px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
  }


  .do_section .do_container {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  /* Chaque compétence = colonne centrée */
  .do_section .do_container > .box {
    flex: 0 0 48% !important;        /* 2 par ligne */
    max-width: 48% !important;
    margin: 0 0 16px 0 !important;
    box-sizing: border-box;
    display: flex;                   /* <== important */
    flex-direction: column;          /* image au-dessus du texte */
    align-items: center;             /* centre horizontalement */
    justify-content: flex-start;
    text-align: center;
  }

  .do_section .do_container > .box .img-box,
  .do_section .do_container > .box .detail-box {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .do_section .do_container > .box .img-box img {
    width: 80px !important;
    height: auto !important;
  }

  /* Si le dernier est seul (AI), il prend toute la largeur mais reste centré */
  .do_section .do_container > .box:last-child:nth-child(odd) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Centrage du bloc "Se renseigner" sur mobile */
  .info_section .detail-box {
    text-align: center !important;
  }

  .info_section .social_box {
    justify-content: center !important;
    padding-left: 0 !important;
  }

  /* Réduction de l'image projet2.png de moitié sur mobile */
  .work_section .img-box img {
    width: 50% !important;
    height: auto !important;
  }

  /* Réorganisation de la section projets : image en haut sur mobile */
  .work_section .row {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  /* Espace entre l'image et le titre sur mobile */
  .work_section .img-box {
    margin-bottom: 30px;
  }

  /* Bloc portfolio en colonne sur mobile (texte en haut, image en bas) */
  .portfolio-block {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .opensource-image {
    flex: 0 0 auto;
    width: 50%;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   COMPÉTENCES : effet couleur au survol + au clic
-------------------------------------------------------------------------- */

/* Icônes grisées par défaut */
.do_section .do_container .box .img-box img {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

/* Survol desktop : cercle orange + icône couleur */
.do_section .do_container .box:hover .img-box {
  background-color: #FE9E4C;
  transition: background-color 0.3s ease;
}
.do_section .do_container .box:hover .img-box img {
  filter: grayscale(0%);
}

/* Clic (classe .active) : même effet que :hover (mobile + desktop) */
.do_section .do_container .box.active .img-box {
  background-color: #FE9E4C;
}
.do_section .do_container .box.active .img-box img {
  filter: grayscale(0%);
}

/* Curseur pointer pour indiquer que les compétences sont cliquables */
.do_section .do_container .box {
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Animation au survol des boxes de compétences */
.do_section .do_container .box:hover {
  transform: translateY(-10px);
}

/* Animation de l'image au survol */
.do_section .do_container .box .img-box {
  transition: all 0.3s ease;
}

.do_section .do_container .box:hover .img-box {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   MODAL COMPÉTENCES : fenêtre modale pour afficher les détails
-------------------------------------------------------------------------- */

/* Overlay de la modale (fond sombre) */
.modal-competence {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal-competence.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenu de la modale */
.modal-competence-content {
  background-color: #ffffff;
  margin: auto;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

/* Bouton fermer (×) */
.modal-competence-close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.modal-competence-close:hover,
.modal-competence-close:focus {
  color: #FE9E4C;
}

/* Flèches de navigation dans la modale */
.modal-competence-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(254, 158, 76, 0.8);
  color: #ffffff;
  border: none;
  font-size: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-competence-nav:hover {
  background-color: #FE9E4C;
  transform: translateY(-50%) scale(1.1);
}

.modal-competence-prev {
  left: -25px;
}

.modal-competence-next {
  right: -25px;
}

/* Sur mobile, flèches à l'intérieur de la modale */
@media (max-width: 768px) {
  .modal-competence-prev {
    left: 10px;
  }

  .modal-competence-next {
    right: 10px;
  }

  .modal-competence-nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

}

/* Titre de la modale */
.modal-competence-content h3 {
  color: #24343C;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  display: block;
  width: 100%;
}

.modal-competence-content h3 span {
  display: block;
  width: 100%;
}

/* Texte de la modale */
.modal-competence-content p {
  color: #666;
  line-height: 1.6;
  text-align: justify;
}

/* --------------------------------------------------------------------------
   FORMULAIRE DE CONTACT : Style pour le select et textarea
-------------------------------------------------------------------------- */

/* Style pour le select (liste déroulante) */
.contact_section .contact-form select {
  border: none;
  outline: none;
  background-color: transparent;
  width: 100%;
  margin: 15px 0;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  color: rgba(0, 0, 0, 0.7);
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

.contact_section .contact-form select:focus {
  border-color: #FF4F5A;
}

.contact_section .contact-form select option {
  color: #000;
  background-color: #fff;
  padding: 10px;
}

/* Style pour le textarea */
.contact_section .contact-form textarea {
  border: none;
  outline: none;
  background-color: transparent;
  width: 100%;
  margin: 15px 0;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  color: rgba(0, 0, 0, 0.7);
  font-family: 'Open Sans', sans-serif;
  resize: vertical;
  min-height: 120px;
}

.contact_section .contact-form textarea:focus {
  border-color: #FF4F5A;
}

.contact_section .contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Redimensionnement de l'image DigipraTech sur la page contact */
.contact_section .map_img-box {
  width: 27%;  /* Sur PC : 80% divisé par 3 ≈ 27% */
}

/* Sur mobile : réduction de 50% seulement */
@media (max-width: 768px) {
  .contact_section .map_img-box {
    width: 40%;  /* Sur mobile : 80% divisé par 2 = 40% */
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


