.single-annuaire-aaesff header.entry-header {
    position: relative;
}
.content-entreprise {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin-bottom: calc(var(--gap) * 3);
    padding-top: calc(var(--gap) * 2);
}
.dates-entreprise {
    display: flex;
    color: var(--blue-2);
    gap: var(--gap);
    align-items: center;
   font-weight: 400;
}
.entreprise-status {
    padding: 0.2rem 0.4rem;
    border-radius: calc(var(--radius) / 2);
    background: var(--grey);
    color: var(--black);
    display: flex;
    align-items: center;
    gap: calc(var(--gap) / 2);
}
.entreprise-status:before{
    content: "";
    border-radius: 10px;
    background: var(--green);
    height: 8px;
    width: 8px;
}
.entreprise-status.out:before{
    background: red;
}
/* IMAGE */
.entreprise-gallerie-single {
    width: calc(100vw - var(--header-width) - var(--sidebar-width));
    height: clamp(280px, 25vh, 400px);
    background-color: var(--grey-3);
    border-radius: 0 0 calc(var(--radius) * 4) calc(var(--radius) * 4);
    left: 50%;
    position: relative;
    top: 0;
    transform: translate(-50%, 0px);
    margin-bottom: calc(var(--gap) * 4);
}
#gallery-entreprise.entreprise-gallerie-single ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 0!important;
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
}
.entreprise-gallerie-single ul li {
    width: 100%;
    height: 100%;
    overflow: hidden;
    width: calc(100vw - var(--header-width) - var(--sidebar-width));
}
.entreprise-gallerie-single ul li img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* LOGO */
img.entreprise-logo {
    width: 170px;
    height: 170px;
    overflow: hidden;
    border-radius: 200px;
    border: 6px solid var(--grey);
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    background: #FFF;
    transform: translate(1rem, calc(-100% - var(--gap)));
}
.secteur-d-activite-principal{
    font-size: 1.3rem;
}
.secteur-d-activite-principal > span:not(:last-of-type):after {
    content: ", ";
}
/* ROW */
.row-entreprise {
    display: flex;
    width: 100%;
    gap: 1px;
    background: var(--grey);
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    overflow: hidden;
}
.row-entreprise.row-grey{
    background: transparent;
    border: none;
    gap: var(--gap);
}
.row-entreprise > div {
    width: 100%;
    background: var(--white);
    padding: var(--gap);
}
.row-entreprise.row-grey > div {
    padding: 0;
    gap: var(--gap);
    display: flex;
    flex-direction: column;
}
.row-entreprise.row-grey .entreprise-toggle-toggle {
    background: var(--grey-3);
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    overflow: hidden;
}
.entreprise-toggle-toggle > div {
    padding: var(--gap);
}
.entreprise-toggle-toggle .more-toggle {
    padding-top: 0;
}
.row-entreprise h2,
.row-entreprise h3{
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: var(--gap);
}
.entreprise-toggle-section h2,
.entreprise-toggle-section h3{
    margin-bottom: 0;
}

.empty-item {
    padding: calc(var(--gap) * 1);
    border: 1px dashed var(--grey);
    border-radius: var(--radius);
    color: var(--blue-2);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 0.8rem;
}
.empty-item.horizontal-notice,
.empty-item.horizontal-notice small {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}
.empty-item.small-notice {
    padding: calc(var(--gap) * 0.5);
    font-size: 0.9rem;
    border: 1px dashed var(--grey);
    color: var(--grey-2);
}
.empty-item a{
    text-decoration: underline;
}
.empty-item a:hover{
    background: none!important;
    color: var(--orange);
}
.row-entreprise .tag {
    background-color: var(--orange-3);
    padding: 0.2rem 0.4rem;
    border-radius: calc(var(--radius) / 2);
    color: var(--white);
    font-size: 0.9rem;
    display: inline-flex;
}
.row-entreprise ul {
    color: var(--blue-2);
    font-weight: 400;
    column-count: 2;
    display: flex;
    flex-direction: column;
}
.tag-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--gap) / 2);
}
/* TOGGLE */
.expand-toggle {
    cursor: pointer;
}
.toggle-off .expand-toggle img {
    display: none;
}
.toggle-on .more-toggle {
    display: none;
    flex-direction: column;
}
.toggle-on.toggled .more-toggle{
    display: flex;
}

.info-row {
    display: flex;
    align-items: flex-start;
    border-top: 1px solid var(--grey);
    padding: calc(var(--gap) / 1) 0 0 0;
    margin: calc(var(--gap) / 1) 0 0 0;
}
.more-toggle .info-row:first-of-type{
    margin-top: 0;
}

.info-row .info-label{
    max-width: 50%;
    font-weight: 300;
    max-width: 50%;
    width: 100%;
}
.info-row .info-value{
    color: var(--blue-2);
    text-align: left;
    max-width: 50%;
    width: 100%;
}
.info-row .info-value:last-of-type, .info-row .info-label:last-of-type {
    text-align: right;
}
.info-row .info-value a {
    text-decoration: underline;
    padding: 0;
}
.info-row .info-value a:hover {
    text-decoration: none;
    color: var(--orange);
}
span.info-value > span:not(:last-of-type):after {
    content: ", ";
}

/* SIDEBAR */


/* partenaires */
.entreprise-sides-infos {
    margin-top: calc(var(--gap) * 2);
    padding-top: calc(var(--gap) * 2);
    border-top: 1px solid var(--grey);
    display: flex;
    flex-direction: column;
}
.partenaire-label-side{
    display: flex;
    align-items: center;
    padding: var(--gap);
    border: 4px solid var(--green-2);
    background-color: var(--green);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius);
}

.partenaire-label-side.non-partenaire{
    border: 4px solid var(--yellow-2);
    background-color: var(--yellow);
    font-size: 1rem;
}

.partenaire-label-side.non-partenaire a{
    padding: 0;
    text-decoration: underline;
}


/* Jobs */
.offre-emploi-entreprise {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) / 2 );
}
.entreprise-sides-infos .button-entreprise {
    display: flex;
    align-items: center;
    padding: var(--gap);
    border: 1px solid var(--grey);
    background: var(--grey-3)!important;
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    border-radius: var(--radius);
    transition: border 300ms ease-in-out, color 300ms ease-in-out;
    text-align: left;
}
.entreprise-sides-infos .button-entreprise.empty-rs{
    display: none;
}
.entreprise-sides-infos .button-entreprise:hover {
    background: var(--grey-3)!important;
    border: 1px solid var(--orange);
    color: var(--blue-2);
}
.entreprise-sides-infos .button-entreprise span{
    width: 100%;
    padding-right: var(--gap);
}
.entreprise-sides-infos .button-entreprise svg.arrow-forward{
    transform: rotate(180deg);
}

/* COORDONNEES */
.mains-coordonnees {
    text-align: center;
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    padding: var(--gap);
    display: flex;
    flex-direction: column;
}
.mains-coordonnees h3{
    margin: 0;
}

/* LINK */
.rs-main-link{
    text-align: center;
    padding: 5px!important;
    background-image: none !important;
    margin: 5px!important;
}
.entreprise-sides-infos .button-entreprise.main-site-link{
    text-align: center;
    background-image: none !important;
    justify-content: center;
    gap: calc(var(--gap) /3);
}

.call-btn-contact a{
    font-size: 1.4rem;
}


div.hidden-contact a {
    font-size: 1.3rem;
}
.button-entreprise a {
    justify-content: center;
}

div.hidden-contact {
    gap: calc(var(--gap) * 1);
    display: flex;
    flex-direction: column;
}

/* BACK */
.single-annuaire-aaesff .archive-title-container:not(.second-header-container) {
    position: absolute;
    left: calc(var(--gap) * 2);
    top: calc((var(--gap) * 2) + var(--header-height));
    height: auto;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 1;
}

.single-annuaire-aaesff .archive-title-container:not(.second-header-container) .container{
    padding: 0;

}
.single-annuaire-aaesff .archive-title-container:not(.second-header-container) .wp-block-button{
    display: none;
}
.single-annuaire-aaesff .archive-title-container:not(.second-header-container) a.annuaire-header-link{
    padding: var(--gap);
    border-radius: var(--radius);
}

.call-btn-contact{
    margin-bottom: 0;
}


.mobile-entreprise-infos{display: none;}

.annuaire-link-nav {
    margin-bottom: calc(var(--gap) * 0);
}



/* GALLERIE EMPTY */
.entreprise-gallerie-single.empty-gallery{
    height: calc(var(--header-height) + var(--gap));
    margin-bottom: var(--gap);
    border-radius: 0;
}


@media (max-width: 1366px) {
    .entreprise-sides-infos .button-entreprise.main-site-link{
    flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .mains-coordonnees > div {
        flex-direction: column;
    }
    .partenaire-label-side{
        font-size: 0.8rem;
    }
    .offre-emploi-entreprise h3 {
        font-size: 1rem;
    }
    .entreprise-sides-infos .button-entreprise span {
        width: 100%;
        padding-right: var(--gap);
        font-size: 12px;
    }
    .call-btn-contact a {
        font-size: 1.2rem;
    }
    div.hidden-contact a {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .content-entreprise,
    .row-entreprise.row-grey {
        gap: calc(var(--gap) * 2);
    }
    .offre-emploi-entreprise h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    .mobile-entreprise-infos{
        display: flex;
    }
    .single-annuaire-aaesff #secondary{
        display: none;
    }
    .mobile-entreprise-infos .entreprise-sides-infos {
        width: 100%;
    }
    .mains-coordonnees > div {
        flex-direction: row;
    }
    .mobile-entreprise-infos .entreprise-sides-infos  {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1fr);
        grid-column-gap: calc(var(--gap) * 2);
        grid-row-gap: calc(var(--gap) * 2);
    }
    .entreprise-sides-infos .partenaire-label-side { 
        grid-area: 1 / 1 / 2 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: calc(var(--gap) * 3);
    }
    .entreprise-sides-infos .offre-emploi-entreprise  { grid-area: 1 / 3 / 2 / 5; }
    .entreprise-sides-infos .mains-coordonnees { grid-area: 2 / 1 / 3 / 5; }
        
    .mains-coordonnees {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1fr);
        grid-column-gap: calc(var(--gap) * 2);
        grid-row-gap: calc(var(--gap) * 2);
    }
    .mains-coordonnees h3 { grid-area: 1 / 1 / 2 / 5; }
    .mains-coordonnees .button-entreprise { grid-area: 2 / 1 / 3 / 3; }
    .mains-coordonnees > div:first-of-type { grid-area: 2 / 3 / 3 / 5; }
    .mains-coordonnees > button,
    .mains-coordonnees .hidden-contact { grid-area: 3 / 1 / 4 / 5; }
    .row-entreprise{
        flex-direction: column;
    }
    .content-entreprise,
    .row-entreprise.row-grey > div{
        gap: calc(var(--gap) * 2); 
    }
    .entreprise-toggle-toggle > div,
    .row-entreprise > div{
        padding: calc(var(--gap) * 2);
    }
    a.annuaire-header-link {
        font-size: 12px;
    }

}


@media (max-width: 576px) {
    
    img.entreprise-logo {
        width: 140px;
        height: 140px;
    }

    .content-entreprise {
        gap: calc(var(--gap) * 2); 
    }
    .row-entreprise h2, .row-entreprise h3 {
        font-size: 1rem;
    }
    .single-annuaire-aaesff header.entry-header > div{
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .secteur-d-activite-principal {
        font-size: 1.2rem;
    }
    .single-annuaire-aaesff header.entry-header > div .dates-entreprise > span{
        display: none;
    }
    .entreprise-sides-infos .partenaire-label-side {
        grid-area: 1 / 1 / 2 / 5;
    }
    .entreprise-sides-infos .offre-emploi-entreprise {
        grid-area: 3 / 1 / 3 / 5;
    }
    .entreprise-sides-infos .mains-coordonnees {
        grid-area: 2 / 1 / 2 / 5;
    }
    .mains-coordonnees .button-entreprise {
        grid-area: 2 / 1 / 2 / 5;
    }
    .mains-coordonnees > div:first-of-type {
        grid-area: 3 / 1 / 3 / 5;
    }
    .mains-coordonnees > button,
    .mains-coordonnees .hidden-contact {
        grid-area: 4 / 1 / 4 / 5;
    }
}