/* CSS spécifique pour la page joinus.html - Design sans cartes */
/* Priorité élevée pour forcer l'application des styles */

/* Section Pourquoi Nous Rejoindre */
.why-join {
    padding: 6rem 0 !important;
    background: white !important;
}

.why-join .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.why-join .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.why-join .section-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.benefits-grid {
    max-width: 1000px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4rem !important;
}

.benefit-item {
    display: flex !important;
    align-items: center !important;
    gap: 3rem !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.benefit-item:nth-child(even) {
    flex-direction: row-reverse !important;
}

.benefit-icon {
    font-size: 4rem !important;
    flex-shrink: 0 !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
}

.benefit-content {
    flex: 1 !important;
}

.benefit-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.benefit-description {
    font-size: 1.1rem !important;
    color: #6c757d !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Section Postes Disponibles */
.positions {
    padding: 6rem 0;
    background: white;
}

.positions .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.positions .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.positions .section-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.positions-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.positions-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.positions-loading .loading-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.positions-loading h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.positions-loading p {
    font-size: 1rem;
    color: #6c757d;
}

/* Styles pour les postes chargés dynamiquement */
.position-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.position-card:hover {
    border-color: #ff3366;
    box-shadow: 0 8px 30px rgba(255, 51, 102, 0.15);
    transform: translateY(-2px);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.position-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.position-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.position-badge {
    background: #ff3366;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.position-company {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.position-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.position-requirements {
    margin-bottom: 2rem;
}

.position-requirements h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.position-requirements ul {
    list-style: none;
    padding: 0;
}

.position-requirements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.position-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.position-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.position-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.position-btn-primary {
    background: #ff3366;
    color: white;
    border: 2px solid #ff3366;
}

.position-btn-primary:hover {
    background: #e02e5c;
    border-color: #e02e5c;
    color: white;
    transform: translateY(-1px);
}

.position-btn-secondary {
    background: transparent;
    color: #ff3366;
    border: 2px solid #ff3366;
}

.position-btn-secondary:hover {
    background: #ff3366;
    color: white;
    transform: translateY(-1px);
}

/* Section Candidature */
.application {
    padding: 6rem 0;
    background: #f8f9fa;
}

.application-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.application-info .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.application-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.application-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ff3366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Formulaire de candidature */
.application-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #ff3366;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder {
    color: #6c757d;
}

/* Upload de fichier */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.file-label:hover {
    border-color: #ff3366;
    background: #fff5f7;
    color: #ff3366;
}

.file-icon {
    font-size: 1.5rem;
}

/* Checkbox personnalisé */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark {
    background: #ff3366;
    border-color: #ff3366;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: #ff3366;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Bouton de soumission */
.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: #ff3366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.form-submit:hover {
    background: #e02e5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

/* Section Notre Culture */
.culture {
    padding: 6rem 0;
    background: #f8f9fa;
}

.culture .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.culture .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.culture .section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 300;
    margin: 0;
}

.culture-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.culture-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-align: left;
}

.culture-item:nth-child(even) {
    flex-direction: row-reverse;
}

.culture-content {
    flex: 1;
}

.culture-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.culture-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .benefits-grid,
    .culture-grid {
        gap: 3rem;
    }
    
    .application-content {
        gap: 3rem;
    }
    
    .benefit-item,
    .culture-item {
        gap: 2rem;
    }
    
    .benefit-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Sections générales */
    .why-join,
    .positions,
    .application,
    .culture {
        padding: 4rem 0;
    }
    
    .why-join .section-title,
    .positions .section-title,
    .application .section-title,
    .culture .section-title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Responsive pour les éléments en ligne */
    .benefit-item,
    .culture-item {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
    
    .benefit-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .culture-item::before {
        width: 60px;
        height: 60px;
    }
    
    /* Application */
    .application-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .application-form {
        padding: 2rem;
    }
    
    .application-steps {
        gap: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* Position cards */
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .position-actions {
        flex-direction: column;
    }
    
    .position-btn {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Sections */
    .why-join,
    .positions,
    .application,
    .culture {
        padding: 3rem 0;
    }
    
    .why-join .section-title,
    .positions .section-title,
    .application .section-title,
    .culture .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Benefit items */
    .benefit-item {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    .benefit-title {
        font-size: 1.25rem;
    }
    
    /* Application form */
    .application-form {
        padding: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem;
    }
    
    .file-label {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    /* Culture items */
    .culture-item {
        padding: 2rem 1.5rem;
    }
    
    .culture-title {
        font-size: 1.25rem;
    }
    
    /* Position cards */
    .position-card {
        padding: 1.5rem;
    }
    
    .position-title {
        font-size: 1.25rem;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-item,
.culture-item,
.position-card {
    animation: fadeInUp 0.6s ease forwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }
.benefit-item:nth-child(5) { animation-delay: 0.5s; }
.benefit-item:nth-child(6) { animation-delay: 0.6s; }

.culture-item:nth-child(1) { animation-delay: 0.1s; }
.culture-item:nth-child(2) { animation-delay: 0.2s; }
.culture-item:nth-child(3) { animation-delay: 0.3s; }
.culture-item:nth-child(4) { animation-delay: 0.4s; }
.center {
    text-align: center !important;
}