header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 5;
}

#main {
    padding-top: 120px; /* Compenser le header fixe */
}

/* Images sticky sur les côtés */
.sticky-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.sticky-bernard:hover + .card-bernard,
.card-bernard:hover {
    opacity: 1;
    transform: translateY(0);
}

.sticky-franck:hover + .card-franck,
.card-franck:hover {
    opacity: 1;
    transform: translateY(0);
}

.sticky-bernard {
    position: absolute;
    left: -100px; /* Coller plus à l'extrémité gauche */
    bottom: 0; /* Ancrer en bas de l'écran */
    height: 100vh; /* Prendre toute la hauteur */
    width: auto;
    object-fit: contain;
    object-position: left bottom; /* Positionner depuis le bas gauche */
    pointer-events: auto;
}

.sticky-franck {
    position: absolute;
    right: -100px; /* Coller plus à l'extrémité droite */
    bottom: 0; /* Ancrer en bas de l'écran */
    height: 100vh; /* Prendre toute la hauteur */
    width: auto;
    object-fit: contain;
    object-position: right bottom; /* Positionner depuis le bas droit */
    pointer-events: auto;
}

/* Cartes de visite */
.business-card {
    position: absolute;
    bottom: 30%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--contraste, #333);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.7;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.card-bernard {
    left: 60px;
}

.card-franck {
    right: 60px;
}

.card-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--contraste, #333);
    line-height: 1.2;
}

.card-content p {
    margin: 0;
    font-size: 14px;
    color: var(--contraste-light, #666);
    font-style: italic;
}

#recrutement-container {
    position: relative;
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
    z-index: 2; /* Au-dessus des images sticky */
}

/* Textes d'intro sans fond */
.intro-text {
    width: 100%;
    text-align: center;
    padding: 24px;
    line-height: 1.6;
    position: relative;
    z-index: 3; /* Au-dessus des images sticky */
    margin: 24px 0;
}

.intro-text h1, .intro-text h2, .intro-text h3 {
    margin-bottom: 16px;
}

.intro-text p {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #fffdf875;
    backdrop-filter: blur(5px);
    border-radius: 12px;
}

.intro-text .button {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background-color: var(--rassurante);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.intro-text .button:hover {
    background-color: var(--ludique);
    color: white !important;
}

/* Grille des postes */
.postes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    width: 100%;
}

/* Style des cartes de poste */
.poste-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border: 2px solid var(--contraste);
    border-radius: 24px;
    background-color: var(--bg-second);
    box-shadow: 0 6px var(--contraste-25);
    text-align: center;
    position: relative;
    z-index: 2; /* Au-dessus des images sticky */
}

.poste-card h1, .poste-card h2, .poste-card h3 {
    margin-bottom: 16px;
}

.poste-card p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.poste-card .button {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background-color: var(--rassurante);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.poste-card .button:hover {
    background-color: var(--ludique);
    color: white !important;
}

@media screen and (max-width: 1719px) {
    .sticky-images {
        display: none;
    }
}

@media screen and (max-width: 1200px) {

    .business-card {
        bottom: 25%;
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .card-content h4 {
        font-size: 15px;
    }
    
    .card-content p {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    #recrutement-container {
        padding: 32px 16px;
        gap: 48px;
    }
    
    .postes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .poste-card {
        padding: 24px;
    }
}

@media screen and (max-width: 480px) {
    #main {
        padding-top: 100px;
    }
    
    #recrutement-container {
        padding: 24px 12px;
        gap: 32px;
    }
}