.job-detail-container {
	max-width: 1200px;
	width: calc(100% - 2rem);
	margin: auto auto 2rem;
	background: var(--white);
	border-radius: 20px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: var(--transition);
	border: 1px solid var(--border);
}
body.dark-mode .job-detail-container {
	background: #1a243d;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.job-header {
	padding: 2rem;
	background: var(--white);
	color: var(--text);
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	border-bottom: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
body.dark-mode .job-header {
	background: #1a243d;
	color: #e2e8f0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.job-header-top {
	align-items: center; 
	gap: 1rem;			
	width: 100%;
	display: flex;
}
.job-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--primary);
	line-height: 1.3;
	margin-top: 0;

}
body.dark-mode .job-title {
	color: var(--accent);
}
.job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
	width: 100%;
}
.job-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(59, 130, 246, 0.1);
	padding: 0.6rem 1rem;
	border-radius: 10px;
	color: var(--secondary);
	font-size: 0.9rem;
}
body.dark-mode .job-meta-item {
	background: rgba(59, 130, 246, 0.2);
	color: #93c5fd;
}
.job-meta-item i {
	color: var(--secondary);
}
.job-meta-item span {
	color: #475569;
}
body.dark-mode .job-meta-item span {
	color: var(--accent);;
}
.job-content {
	padding: 2rem 1.5rem;
}
body.dark-mode .job-content {
  box-shadow: none !important;    /* supprime le relief qui modifie la hauteur visuelle */
  border: none !important;
  background-color: #F5F7FA !important; /* blanc clair premium doux */
  color: #1e293b !important;
}
.company-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	margin-top: 0.3rem;
	padding: 2rem;
	background: rgba(30, 58, 138, 0.03);
	border-radius: 16px;
	transition: var(--transition);
	border: 1px solid var(--border);
	width: 100%;
	max-width: 500px;
	text-align: center;
	justify-content: center;
    margin: 0 auto;
}
.company-info:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.company-logo {
	width: 60px;
	height: 60px;
	object-fit: contain;
	background: white;
	padding: 8px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: var(--transition);
}

.company-info:hover .company-logo {
	transform: scale(1.05);
}

.company-details {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.company-link {
	color: var(--primary);
	font-weight: 700;
	text-decoration: none;
	transition: var(--transition);
	font-size: 1.1rem;
	padding: 1rem 2rem;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	border: 2px solid transparent;
	text-align: center;
	width: 100%;
	max-width: 350px;
	position: relative;
	overflow: hidden;
}

.company-link:hover {
	color: var(--secondary);
	background: rgba(59, 130, 246, 0.1);
	border-color: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

.company-link::before {
	content: '';
	position: absolute;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transition: right 0.5s ease;
}

.company-link:hover::before {
	right: 100%;
}

body.dark-mode .company-info {
	background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .company-logo {
	background: #2d3748;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .company-link {
	color: var(--accent);
	background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .company-link:hover {
	color: var(--secondary);
	background: rgba(59, 130, 246, 0.15);
}

@media (max-width: 1024px) {
  .company-details {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {        
	.job-detail-container {
		width: calc(100% - 0.2rem);
		margin: auto auto 1.5rem;
	}
	
	.job-header {
		padding: 0.5rem;
	}
   
	.job-title {
		font-size: 1.3rem;
	}
	
	.job-meta {
		gap: 0.8rem;
	}
	
	.job-meta-item {
		font-size: 0.85rem;
		padding: 0.5rem 0.8rem;
	}
	
	.job-content {
		padding: 2rem 1.5rem;
	}
	
	.job-section-title {
		font-size: 1.4rem;
	}
	.company-info {
		padding: 1.5rem;
	}
	
	.company-link {
		padding: 0.8rem 1.5rem;
		font-size: 1rem;
	}
	
	.company-logo {
		width: 50px;
		height: 50px;
	}		
}

@media (max-width: 480px) {
	.job-title {
		font-size: 1.2rem;
	}
	.job-meta {
		flex-direction: column;
		gap: 0.4rem;
	}
	.job-content {
		padding: 1.5rem 0.5rem;
	}
	.company-info {
		padding: 1rem;
	}
	.company-link {
		padding: 0.7rem 1.2rem;
		font-size: 0.95rem;
	}
}





/* === TABLEAUX DYNAMIQUES RTL - VERSION PROFESSIONNELLE === */
.job-content {
    position: relative;
	direction: ltr;

}

/* Scrollbar moderne */
.job-content::-webkit-scrollbar {
    height: 8px;
}
.job-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 8px;
}
.job-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* Table principale — conserve les largeurs naturelles */
.job-content table {
    border-collapse: collapse;
    margin: 2rem auto;
    font-family: 'Tajawal', 'Arial', sans-serif;
    font-size: 1rem;
    width: auto;            /* ne force pas la largeur */
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    table-layout: auto;     /* conserve largeur réelle de chaque colonne */
    overflow-x: auto; /* défilement horizontal si nécessaire */
    -webkit-overflow-scrolling: touch; /* scroll fluide mobile */
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) rgba(0, 0, 0, 0.08);
	
}

/* Cellules */
.job-content th,
.job-content td {
    padding: 1rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    text-align: justify;
    line-height: 1.6;
}

/* En-têtes */
.job-content th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Lignes alternées + survol */
.job-content tr:nth-child(even) td {
    background: #f9fafb;
}
.job-content tr:hover td {
    background: rgba(59, 130, 246, 0.08);
    transition: all 0.2s ease;
}

/* Mode sombre */
body.dark-mode .job-content {
    scrollbar-color: #60a5fa rgba(255, 255, 255, 0.07);
}

/* Responsive sans déformer les colonnes */
@media (max-width: 768px) {
    .job-content {
        overflow-x: auto;
    }
    .job-content table {
        width: auto;
        /*min-width: 600px;*/
        font-size: 0.9rem;
    }
    .job-content th, .job-content td {
        padding: 0.4rem 0.4rem;
    }
}



/* ============================================
   🔗 BOUTON DE PARTAGE FLOTTANT - GAUCHE VERS LE BAS
   ============================================ */

.floating-share-btn {
    position: fixed;
    top: 110px;
    left: 20px;
    z-index: 10000;
    transition: all 0.3s ease-in-out;
}

/* Bouton principal */
.floating-share-trigger {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-share-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* Sous-boutons */
.floating-share-options {
    position: absolute;
    top: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* État actif - AFFICHAGE DES SOUS-BOUTONS */
.floating-share-btn.active .floating-share-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Boutons individuels */
.floating-share-option {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, opacity 0.25s ease;
    position: relative;
}

.floating-share-option:hover {
    transform: scale(1.12) translateY(-2px);
}

/* Animation de l'icône principale */
.floating-share-btn.active .floating-share-trigger i {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* États de chargement */
.floating-share-option.loading {
    opacity: 0.7;
    pointer-events: none;
}

.floating-share-option.loading::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Couleurs réseaux */
.floating-share-option.facebook { background: #1877F2; }
.floating-share-option.twitter { background: #1DA1F2; }
.floating-share-option.linkedin { background: #0A66C2; }
.floating-share-option.whatsapp { background: #25D366; }

/* Tooltip */
.floating-share-option::after {
    content: attr(aria-label);
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 10001;
}

.floating-share-option:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .floating-share-btn {
        top: 90px;
        left: 15px;
    }
    .floating-share-trigger {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .floating-share-option {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .floating-share-option::after {
        left: 55px;
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}

/* 🌙 Mode sombre */
body.dark-mode .floating-share-trigger,
body.dark-mode .floating-share-option {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Accessibilité - focus styles */
.floating-share-trigger:focus,
.floating-share-option:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}


