.profile-header {
    margin-bottom: 0px;
  }
  .colDroiteHeader{
    margin-top: 80px;
    height: 100px;
  }
  .profile-buttons-wrapper {
    background: inherit;
    padding-bottom:0px;
  }
  .profile-cover-buttons {
    font-size: 12px;
  }
  .TextHeaderPresentation {
    color: white;
    padding-top: 0px;
    height:50px;
    padding-left: 0px;
  }
  .profile-avatar-change, .profile-avatar-crop, .profile-avatar-delete {
    font-size: 9px;
  }
  .profile-name-wrapper {
    background: inherit;
  }
  .profile-avatar-wrapper {
    padding-left: 50px;
    padding-top: 130px;
  }











.profile-cover-buttons {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0;
  z-index: 40;
}
.profile-avatar-fond {
  position: inherit;
  top: 0;
  left: 0;
}
.profile-avatar-wrapper {
  position: inherit;
  top: 0;
  left: 0;
  background: inherit;
  transform: inherit;
}
.profile-avatar-change, .profile-avatar-crop, .profile-avatar-delete {
  position: absolute;
  bottom: inherit;
  right: inherit;
  height: fit-content;
}
/* 1) On enlève toute position absolue de l’avatar : */
.profile-avatar-wrapper {
  position: relative;          /* statique dans le flow, relative seulement pour les icônes internes */
  flex: 0 0 auto;              /* ne grossit pas, ne rétrécit pas */
  width: 150px;
  height: 150px;
  padding:0px!important;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: #eee;
  z-index: 1000;                  /* au-dessus du background mais en dessous du texte si nécessaire */
}

/* 2) Image pleine largeur du wrapper */
.profile-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: inherit;
}

/* 3) Wrapper flex qui contient avatar + texte */
.profile-header2 {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 1.5rem;                 /* espace garantissant que l’avatar ne touche pas le texte */
  background: transparent;     /* ou hérité selon votre besoin */
}

/* 4) Texte prend tout l’espace restant */
.text-header-presentation {
  position: relative;          /* pour overlay si besoin */
  flex: 1 1 auto;              /* prend l’espace disponible */
  max-width: calc(100% - 100px); /* empêche d’être plus large que l’espace restant */
  margin: 0;                   /* géré par flex-gap */
  border-radius: 1rem;
  overflow: hidden;
  background-position: center;
  backdrop-filter: blur(2px);
  z-index: 1;                   /* en-dessous de l’avatar pour éviter la superposition visuelle */
}

/* 5) Overlay texte en pseudo-élément interne (garde le texte toujours lisible) */
.text-header-presentation .text-overlay {
  position: relative;
  z-index: 3;                  /* au-dessus de tout */
  padding: 1.5rem;
  color: #fff;
}



/* Responsive : réduire la taille de l’avatar et du gap sur mobile */
@media (max-width: 576px) {
  .profile-avatar-wrapper {
    width: 60px;
    height: 60px;
  }
  .profile-header {
    gap: 1rem;
  }
  .text-header-presentation {
    padding: 1rem;
  }
}



@media (min-width: 992px) {
  .profile-avatar-wrapper:not(.static) {
    top: inherit;
    bottom: 0px;
    left: 0px;
    transform: inherit;
  }
}







  /* Badge de catégorie */
  .badge-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.5rem;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    margin-bottom: 0.5rem;
  }

  /* Icône “certifié” */
  .certified-icon {
    color: #ffd700;            /* or gold */
    margin-left: 0.5rem;
    vertical-align: middle;
  }

  /* Titre principal */
  .profile-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0.25rem 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  }

  /* Sous-titre (pro only) */
  .profile-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #ddd;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  }

  /* Localisation */
  .location {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    opacity: 0.9;
    color: #fff;
    gap: 0.25rem;
  }
  .location i {
    font-size: 1rem;
  }









  .profile-header2 {
    display: flex;
    align-items: center;
    overflow: visible;        /* très important */
    position: relative;
  }
  .profile-avatar-wrapper {
    position: relative;
    border-radius: 50%;
    overflow: visible;
    z-index: 10;
  }
  .profile-avatar-wrapper img { width:100%; height:100%; object-fit:cover; }

  /* Boutons */
  .profile-avatar-change4,
  .profile-avatar-crop4,
  .profile-avatar-delete4 {
    position: absolute;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: .2s; z-index: 20;
    cursor: pointer;
  }
  .profile-avatar-delete4 {
    background: rgba(248, 7, 7, 0.6);
  }
  .profile-avatar-change4 { top: 8px; right: 0px; }
  .profile-avatar-crop4   { bottom: 8px; right: 0px; }
  .profile-avatar-delete4 { bottom: 0px; left: 8px; }

  .text-header-presentation {
    flex: 1;
    margin-left: 1rem;
    position: relative;
    overflow: visible;
    z-index: 1;
    /* conservez vos autres styles (bg-image, blur, etc.) */
  }

  .profile-label-badges {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 30;
  }
  .profile-label-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 10px 25px rgba(23, 162, 184, 0.25);
    border: 1px solid rgba(23, 162, 184, 0.35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .profile-label-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


@media (max-width: 576px) {
  .text-header-presentation {
    margin-left: 15px!important;
  }
  .text-header-presentation-container {
    height: 100px!important;
  }
  .profile-avatar-wrapper {
    width: 100px!important;
    height: 100px!important;
  }
  .profile-header2 {
    margin-left: 15px!important;
    margin-top: 0px!important;
  }
  .profile-label-badges {
    top: 0.75rem;
    right: 0.75rem;
    gap: 0.5rem;
  }
  .profile-label-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .profile-title {
    font-size: 1rem;
  }
  .profile-avatar-change4, .profile-avatar-crop4, .profile-avatar-delete4 {
    width: 24px!important;
    height: 24px!important;
  }
  .profile-avatar-change4 { top: -3px; right: 8px; }
  .profile-avatar-crop4   { bottom: 8px; right: -6px; }
  .profile-avatar-delete4 { bottom: -7px; left: 8px; }
  .profile-buttons-wrapper {
    width:auto!important;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .text-header-presentation {
    margin-left: 15px!important;
  }
  .text-header-presentation-container {
    height: 100px!important;
  }
  .profile-avatar-wrapper {
    width: 100px!important;
    height: 100px!important;
  }
  .profile-header2 {
    margin-left: 40px!important;
    margin-top: 20px!important;
  }
  .profile-label-badges {
    top: 1rem;
    right: 1rem;
    gap: 0.6rem;
  }
  .profile-label-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .profile-title {
    font-size: 1rem;
  }
  .profile-avatar-change4, .profile-avatar-crop4, .profile-avatar-delete4 {
    width: 24px!important;
    height: 24px!important;
  }
  .profile-avatar-change4 { top: -3px; right: 8px; }
  .profile-avatar-crop4   { bottom: 8px; right: -6px; }
  .profile-avatar-delete4 { bottom: -7px; left: 8px; }
  .profile-buttons-wrapper {
    width:auto!important;
  }
}
@media (min-width: 768px) {
  .text-header-presentation {
    margin-left: 15px!important;
  }
  .text-header-presentation-container {
    height: 100px!important;
  }
  .profile-avatar-wrapper {
    width: 100px!important;
    height: 100px!important;
  }
  .profile-header2 {
    margin-top: 120px!important;
    margin-left: 30px!important;
  }
  .profile-title {
    font-size: 1.25rem;
  }
  .profile-avatar-change4, .profile-avatar-crop4, .profile-avatar-delete4 {
    width: 24px!important;
    height: 24px!important;
  }
  .profile-avatar-change4 { top: -3px; right: 8px; }
  .profile-avatar-crop4   { bottom: 8px; right: -6px; }
  .profile-avatar-delete4 { bottom: -7px; left: 8px; }
  .profile-buttons-wrapper {
    width:auto!important;
  }
}
@media (min-width: 992px) {
  .text-header-presentation {
    margin-left: 45px!important;
  }
  .text-header-presentation-container {
    height: 110px!important;
  }
  .profile-avatar-wrapper {
    width: 110px!important;
    height: 110px!important;
  }
  .profile-header2 {
    margin-left: 60px!important;
    margin-top: 180px!important;
  }
  .profile-avatar-change4, .profile-avatar-crop4, .profile-avatar-delete4 {
    width: 32px!important;
    height: 32px!important;
  }
  .profile-avatar-change4 { top: 8px; right: 0px; }
  .profile-avatar-crop4   { bottom: 8px; right: 0px; }
  .profile-avatar-delete4 { bottom: 0px; left: 8px; }
  .profile-buttons-wrapper {
    width:auto!important;
  }
}
@media (min-width: 1200px) {
  .text-header-presentation {
    margin-left: 35px!important;
  }
  .text-header-presentation-container {
    height: 170px!important;
  }
  .profile-avatar-wrapper {
    width: 170px!important;
    height: 170px!important;
  }
  .profile-header2 {
    margin-left: 60px!important;
    margin-top: 110px!important;
  }

  .profile-avatar-change4, .profile-avatar-crop4, .profile-avatar-delete4 {
    width: 32px!important;
    height: 32px!important;
  }
  .profile-avatar-change4 { top: 8px; right: 0px; }
  .profile-avatar-crop4   { bottom: 8px; right: 0px; }
  .profile-avatar-delete4 { bottom: 0px; left: 8px; }
  .profile-buttons-wrapper {
    width:auto!important;
  }
}
@media (min-width: 1400px) {
  .text-header-presentation {
    margin-left: 55px!important;
  }
  .text-header-presentation-container {
    height: 190px!important;
  }
  .profile-avatar-wrapper {
    width: 190px!important;
    height: 190px!important;
  }
  .profile-header2 {
    margin-left: 85px!important;
    margin-top: 60px!important;
  }

  .profile-avatar-change4, .profile-avatar-crop4, .profile-avatar-delete4 {
    width: 32px!important;
    height: 32px!important;
  }
  .profile-avatar-change4 { top: 8px; right: 0px; }
  .profile-avatar-crop4   { bottom: 8px; right: 0px; }
  .profile-avatar-delete4 { bottom: 0px; left: 8px; }
  .profile-buttons-wrapper {
    width:auto!important;
  }
}
.profile-cover-change {
  display: inline-flex;
  align-items: center;
  overflow: visible;           /* laisser le texte déborder si besoin */
}

/* Le vrai « bouton » est un label */
.btn-upload {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
  border-radius: 8px !important;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, padding 0.2s ease;
}

.btn-upload i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.btn-upload .cover-text {
  margin-left: 8px;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.2s ease, opacity 0.2s ease;
}

.btn-upload:hover {
  background: rgba(0,0,0,0.6);
}

.btn-upload:hover .cover-text {
  opacity: 1;
  max-width: 150px;
}
.profile-cover-buttons > div {
  float: left;
  margin-right: 5px;
  padding: 4px 8px;
  border-radius: 8px!important;
  text-align: center;
  background: rgb(0 0 0 / .1);
  transition: all 0.5s;
}
.profile-cover-buttons > div:hover, .btn-upload:hover {

  background: rgba(58, 54, 58, 0.39);

}
.profile-cover-delete:hover{
  cursor: pointer;
  background: rgba(182, 0, 0, 0.6)!important;
}

.text-header-presentation-container {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centre horizontalement */
  justify-content: center;   /* centre verticalement */
  width: auto;

  /* plus de float, car le flex se charge du positionnement */
  float: none;
}
.text-header-presentation {
  /* shrink to the content’s width */

  display: inline-block;
  width: max-content;       /* use the CSS intrinsic size */
  white-space: nowrap;      /* prevent wrapping */
  overflow: visible;        /* show the full content */

  /* disable any flex growth or parent constraints */
  flex: none !important;
  max-width: none !important;

  /* your other styles… */
  position: relative;
  margin: 0;
  border-radius: 1rem;
  backdrop-filter: blur(2px);
  background-position: center;
  z-index: 1;
  height: auto;
}
.x-uploader input[type="file"] {
  height: 50px;
  min-height: inherit;
}
  .btn-modifier {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 100px;
    height: 32px;
    border: none;
    border-radius: 20px;
    background: var(--profile-category-color);
    color: #FFF;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn-postuler {
    width: 112px;
    height: 37px;
    border: none;
    border-radius: 20px;
    background: var(--profile-category-color);
    color: #FFF;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    transition: background 0.2s;
  }

  .btn-supprimer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 120px;
    height: 32px;
    border: none;
    border-radius: 20px;
    background: #BE2828;
    color: #FFF;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    transition: background 0.2s;
  }

  .btn-retour {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 95px;
    height: 32px;
    border: none;
    border-radius: 20px;
    background: #C8D7D9;
    color: #FFF;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    transition: background 0.2s;
  }

  .btn-modifier .icon-circle, .btn-retour .icon-circle, .btn-supprimer .icon-circle, .btn-offre .icon-circle {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    background: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-retour .icon-circle i {
    color: #C8D7D9; /* Couleur de l'icône pour le bouton retour */
  }
  .btn-supprimer .icon-circle i, .btn-supprimer .icon-circle svg {
    color: #BE2828; /* Couleur de l'icône pour le bouton supprimer */
    fill:#BE2828;
  }

  .btn-modifier .icon-circle svg, .btn-retour .icon-circle i, .btn-supprimer .icon-circle svg, .btn-offre .icon-circle svg {
    transition: transform 0.4s ease;
  }

  .btn-modifier .btn-text, .btn-retour .btn-text, .btn-supprimer .btn-text, .btn-offre .btn-text {
    white-space: nowrap;
    transition: text-decoration 0.2s;
  }

.icon-circle svg{
    max-width: inherit!important;
    max-height: inherit!important
  }

  .btn-modifier:hover .icon-circle svg {
    transform: rotate(360deg);
  }

  .btn-modifier:hover .btn-text, .btn-retour:hover .btn-text, .btn-supprimer:hover .btn-text, .btn-offre:hover .btn-text {
    text-decoration: underline;
  }

  .badge-pro{
    display:inline-flex;align-items:center;justify-content:center;
    padding:.25rem .5rem;border-radius:.5rem;
    color:#fff;font-weight:800;letter-spacing:.3px;box-shadow:0 3px 8px rgba(0,0,0,.25);
    background:var(--profile-category-color);
  }

  .profile-header{ background:transparent;color:#fff; }
  .profile-title{ font-size:1.15rem;line-height:1.1;text-shadow:0 2px 6px rgba(0,0,0,.55); }
  @media (min-width:768px){
      .profile-title{ font-size:1.35rem }
  }


  /* Entreprise compact */
  .company-logo{ width:36px;height:36px;object-fit:cover; }
  .lh-tight{ line-height:1.15 }
  .job-title2{ font-size:.95rem; margin-bottom: 4px; }
  .nom-entreprise{ color:#fff;opacity:.95;font-size:.9rem }

  /* Chips compacts */
  .link-chip{
    display:inline-flex;
    align-items:center;
    gap:.25rem;
    padding:.35rem .6rem;border-radius:999px;
    background:rgba(0,0,0,.38);color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.22);
    backdrop-filter:saturate(120%) blur(2px);
  }
  .link-chip:hover{ transform:translateY(-1px);background:rgba(0,0,0,.48);border-color:rgba(255,255,255,.35) }

  /* Mutuals compacts */
  .symbol-group{ display:flex;align-items:center }
  .symbol{ position:relative;display:inline-flex;align-items:center;justify-content:center }
  .symbol + .symbol{ margin-left:-8px }
  .symbol-30px{ width:30px;height:30px;font-size:11px }
  .symbol-circle{ border-radius:50%;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.3) }
  .symbol img{ width:100%;height:100%;object-fit:cover }
  .symbol-label{ display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50% }
  .mutuals-count{ line-height:1 }

  /* Avatars d'aperçu (initiales) */
  .demo-avatar{ font-weight:700;color:#fff }
  .demo-avatar--1{ background:rgba(13,110,253,.35);border:1px solid rgba(13,110,253,.6) }
  .demo-avatar--2{ background:rgba(253,126,20,.35);border:1px solid rgba(253,126,20,.6) }
  .demo-avatar--3{ background:rgba(220,53,69,.35);border:1px solid rgba(220,53,69,.6) }
  .demo-avatar--4{ background:rgba(32,201,151,.35);border:1px solid rgba(32,201,151,.6) }
  .demo-avatar--5{ background:rgba(111,66,193,.35);border:1px solid rgba(111,66,193,.6) }
  .demo-avatar--6{ background:rgba(255,193,7,.35);border:1px solid rgba(255,193,7,.6) }
  .demo-avatar--7{ background:rgba(108,117,125,.35);border:1px solid rgba(108,117,125,.6) }




/* Chip localisation — compact + glassmorphism */
.location-chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding: .6rem .4rem; border-radius:10px;
  background: rgba(0,0,0,.38);
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  backdrop-filter: blur(4px) saturate(120%);
  line-height:1.2;
  width: fit-content;
}
.location-chip .pin{ display:inline-flex; width:20px; height:20px; }
.location-chip .pin-svg{ width:20px; height:20px; display:block; }

.location-main{ font-weight:600; white-space:nowrap; }
.location-more{ display:none; opacity:.85; gap:.35rem; align-items:center; }
.location-sep{ margin:0 .25rem; opacity:.6; }
.chev{ opacity:.45; margin:0 .15rem; }

@media (min-width:576px){
  .location-more{ display:inline-flex; }
}

/* Action (ouvrir carte) */
.location-action{
  margin-left:.25rem;
  width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; text-decoration:none; color:#fff;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  opacity:.9;
}
.location-action:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
  opacity:1;
}

/* Keep legacy mobile cover actions clear of the avatar gallery trigger. */
@media (max-width: 575px) {
  .agorapi-profile-header.profile-cover-wrapper .profile-cover-buttons {
    left: auto !important;
    right: 15px;
  }
}
