.worker-card {
    width: 100%;    
    height: 80px;  
    padding: 10px;
    background: white;
    border-radius: 12px;
    border: 2px solid #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.worker-card:hover {
    box-shadow:0 8px 25px rgba(0,0,0,0.2);
}
.worker-photo {
    width:50px;
    height:50px;
    border-radius:50%;
    border:2px solid #2e2e2e;
    object-fit:cover;
}
.worker-nom {
    font-size:16px;
    font-weight:bold;
    color:#333;
}
.worker-role {
    font-size:14px;
    color:#666;
}

.plan {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    border: 8px solid #000;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url("images/image.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.plan > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    color: #000;
}

.conference {
    grid-column:1/2;
    grid-row:1/2;
    border:3px solid #000;
    color: #000;
    width: 400px;
    top: -6px;
}
.reception {
    grid-column:1/2;
    grid-row:2/4;
    border:3px solid #000;
    top : -7px
}
.serveurs {
    grid-column:3/4;
    grid-row:1/2;
    border:3px solid #000;
    position: fixed;
    right: 3px;
}
.securité {
    grid-column:3/4;
    grid-row:3/4;
    border:3px solid #000;
    width: 230px;
    height: 225px;
}
.personel {
    grid-column:4/5;
    grid-row:1/2;
    border:3px solid #000;
    width: 240px;
    height: 230px;
}
.archives {
    grid-column:4/5;
    grid-row:3/4;
    border:3px solid #000;
}
.vide {
    grid-column:2/3;
    grid-row:1/4;
}
.plan > div h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #000;
    text-align: center;
    margin-top: 20px;
}
.conference .workers-container { max-height: 140px; }
.reception .workers-container { max-height: 250px; }
.serveurs .workers-container { max-height: 150px; }
.securité .workers-container { max-height: 180px; }
.personel .workers-container { max-height: 180px; }
.archives .workers-container { max-height: 180px; }

.workers-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
}

.btn-zone {
    position:absolute;
    bottom:10px;
    right:10px;
    background-color:#db6b02;
    border:none;
    color:white;
    font-size:18px;
    border-radius:50%;
    width:35px;
    height:35px;
    cursor:pointer;
    transition: transform 0.3s;
}
.btn-zone:hover {
    background-color: #783a00;
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 600px;
    background: #fff;
    margin: 80px auto;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color:#ff0000 ;
    cursor: pointer;
}
.close:hover { color:#6e1111 ; }

.modal-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.image-modal {
    display: block;
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0b3214;
    margin: 0 auto 15px;
}
.modal-content label {
    font-size: 14px;
    color: #333;
    display: block;
    margin-top: 10px;
}
.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #28a745;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.modal-content button:hover {
    background: #155023;
}

#experience-container {
    margin-top: 10px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 8px;
}
.experience-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}
.experience-entry input {
    margin: 0;
}
.experience-entry button.remove-exp {
    background: #dc3545;
    color: white;
    font-weight: bold;
}
.experience-entry button.remove-exp:hover {
    background: #a71d2a;
}

.worker-in-zone {
    width: 90%;               
    background: #fff;
    border: 1.5px solid #000;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
}

.worker-in-zone:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.worker-in-zone img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border:2px solid #000;
}

.worker-in-zone p {
    color: black;
    margin: 0;
    font-weight: 600;
}

.btn-remove {
    background:red;
    color:white;
    font-weight:bold;
    border:none;
    border-radius:50%;
    width:20px;
    height:20px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    margin-left: auto;
}

.btn-remove:hover {
    transform: scale(1.1);
}

.empty-required {
    background-color: rgba(255,100,100,0.3);
}


@media (min-width: 768px) and (max-width: 1023px) {
    .plan {
        grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
        height: 100vh;
    }
    
    .conference {
        width: 110%;
        top: 0;
    }
    
    .reception {
        top: 0;
        width: 110%;
    }
    
    .serveurs {
        position: relative;
        width: 100%;
        left: 5px;
        height: 130px;
    }
    
    .personel {
        width: 100%;
        height: auto;
    }
    .securité{
        width: 100%;
        height: 130px;
        left: 6px;
    }
    
    .plan > div h3 {
        font-size: 14px;
        margin-top: 8px;
        margin-bottom: 5px;
    }
    
    .plan > div {
        padding: 8px;
    }
    
    .worker-in-zone {
        padding: 6px;
        font-size: 11px;
    }
    
    .worker-in-zone img {
        width: 25px;
        height: 25px;
    }
    
    .btn-zone {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .conference .workers-container { max-height: 120px; }
    .reception .workers-container { max-height: 200px; }
    .serveurs .workers-container { max-height: 120px; }
    .securité .workers-container { max-height: 140px; }
    .personel .workers-container { max-height: 140px; }
    .archives .workers-container { max-height: 140px; }
}

@media (min-width: 1024px) and (max-width: 1279px){
    .plan {
        grid-template-columns: 1.8fr 0.9fr 1fr 1fr;
    }
    
    .conference {
        width: 101%;
    }

    .reception{
    height: 101%;
    width: 101%;
    }
    
    .personel {
        width: 100%;
        height: auto;
    }
    .securité{
        width: 108%;
        height: auto;
        right: 10px;
    }
    .archives{
        width: 200px;
    }
    .serveurs{
        width: 110%;
        right:15px ;
        height: 105%;
    }
    .personel{
            height: 105%;

    }

    .plan > div h3 {
        font-size: 16px;
    }
    
    .worker-in-zone {
        font-size: 11px;
    }
}
