/* Styles spécifiques pour la page Entreprises avec variables CSS */

.site-header .container,
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.entreprises-page {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background-color: var(--color-background);
    transition: background-color 0.3s ease;
}

.header {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4em;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.headerContent {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1;
    background-color: var(--color-secondary);
    transition: background-color 0.3s ease;
}

.header-left {
    background-color: var(--color-secondary);
    transition: background-color 0.3s ease;
}

.header-left img {
    width: 35em;
    max-width: 100%;
    background-color: var(--color-secondary);
    transition: background-color 0.3s ease;
}

.header-right {
    max-width: 45%;
    background-color: var(--color-secondary);
    transition: background-color 0.3s ease;
}

.header-right h1 {
    font-size: 2.8em;
    font-weight: bold;
    background-color: var(--color-secondary);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-right h2 {
    font-size: 1.3em;
    margin: 1em 0;
    background-color: var(--color-secondary);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-right span {
    background-color: var(--color-secondary);
    color: #63B649; /* Garde la couleur verte spécifique */
    transition: background-color 0.3s ease;
}

.header a {
    background: #63B649;
    border: none;
    justify-content: center;
    align-items: center;
    display: inline-flex;;
    width: 230px;
    height: 50px;
    background: var(--color-green);
    border-radius: 50px;
    font-weight: 600;
    font-size: 24px;
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    align-self: center;
    margin-bottom: 2em;
    transition: 1.5s smooth;
}

.header a:hover {
    background: #4a8f35;
}

/* CONTENT - Section alternance */
.alternance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2em 10%;
    background-color: var(--color-background);
    gap: 2em;
    transition: background-color 0.3s ease;
}

.content-left {
    flex: 1;
    max-width: 50%;
}

.content-left h3 {
    font-size: 2em;
    margin-bottom: 1em;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.content-left p {
    font-size: 1.2em;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.content-left span {
    color: #63B649; /* Garde la couleur verte spécifique */
}

.content-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content-right img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

/* CARROUSEL */
.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel {
    position: relative;
    text-align: center;
    padding: 3em 2em;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--color-background);
    transition: background-color 0.3s ease;
}

.carousel h2 {
    font-size: 1.8rem;
    margin-bottom: 2em;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.slides a {
    text-decoration: none;
}
.slides-container {
    overflow: hidden;
}

.slides {
    display: flex;
    gap: 24px;
}

.slide-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 calc((100% - 2 * 24px) / 3);
}

.slide-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.slide-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide {
    width: 100%;
    height: 320px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.slide img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    flex-shrink: 0;
}

.slide-content {
    padding: 2em;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.slide-person {
    color: #FF7A00;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.slide h3 {
    font-size: 1.2em;
    color: var(--color-text);
    margin-bottom: 0.5em;
    transition: color 0.3s ease;
}

.slide-description {
    color: var(--color-text-light);
    font-size: 1em;
    transition: color 0.3s ease;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.arrow img {
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.arrow:hover img {
    opacity: 0.7;
}

.left {
    left: -50px;
}

.right {
    right: -50px;
}

/* Responsive pour carousel */
@media (max-width: 1024px) {
    .slide-wrapper {
        flex: 0 0 45%;
    }
}

@media (max-width: 768px) {
    .slide-wrapper {
        flex: 0 0 80%;
    }

    .alternance {
        flex-direction: column;
        text-align: center;
    }

    .content-left, .content-right {
        max-width: 100%;
    }

    .header-right h1 {
        font-size: 2.2em;
    }

    .header-right h2 {
        font-size: 1.1em;
    }

    .headerContent {
        flex-direction: column;
        text-align: center;
    }

    .header-left img {
        width: 25em;
    }

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        padding: 2em 1em;
    }

    .slide-wrapper {
        flex: 0 0 90%;
    }

    .header {
        padding: 0 2%;
    }

    .alternance {
        padding: 2em 5%;
    }
}

/* Contenu de page */
.entreprises-page .page-content {
    max-width: 1200px;
    margin: 4em auto;
    padding: 0 2em;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* POPUP IMAGE ENTREPRISES */
.popup-card {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-card.show {
    display: flex;
}

.popup-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3em;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.popup-close:hover {
    opacity: 0.7;
}